[node-patches] Change in ovirt-node[master]: A couple of syntax fixes
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Mon Feb 11 11:45:58 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: A couple of syntax fixes
......................................................................
A couple of syntax fixes
Change-Id: I74d179c47779a15f2d611568caa2358fd409c6c4
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/app.py
M scripts/tui/src/ovirt/node/setup/engine_page.py
M scripts/tui/src/ovirt/node/utils/console.py
3 files changed, 5 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/19/11919/1
diff --git a/scripts/tui/src/ovirt/node/app.py b/scripts/tui/src/ovirt/node/app.py
index feefea2..26237cf 100644
--- a/scripts/tui/src/ovirt/node/app.py
+++ b/scripts/tui/src/ovirt/node/app.py
@@ -79,14 +79,17 @@
}
}
+
def configure_logging():
logging.config.dictConfig(LOGGING)
#logging.basicConfig(level=logging.DEBUG,
# filename="/tmp/app.log", filemode="w",
- # format="%(asctime)s %(levelname)s %(name)s %(message)s")
+ # format="%(asctime)s %(levelname)s %(name)s " +
+# "%(message)s")
configure_logging()
+
class Application(base.Base):
"""The controller part when seeing as an MVC pattern
diff --git a/scripts/tui/src/ovirt/node/setup/engine_page.py b/scripts/tui/src/ovirt/node/setup/engine_page.py
index 79474b0..328ce8d 100644
--- a/scripts/tui/src/ovirt/node/setup/engine_page.py
+++ b/scripts/tui/src/ovirt/node/setup/engine_page.py
@@ -21,7 +21,6 @@
from ovirt.node import plugins, valid, ui, utils, app
from ovirt.node.config.defaults import NodeConfigFileSection
from ovirt.node.plugins import Changeset
-from ovirt.node.utils import console
import sys
"""
diff --git a/scripts/tui/src/ovirt/node/utils/console.py b/scripts/tui/src/ovirt/node/utils/console.py
index 7862ebc..be3b02c 100644
--- a/scripts/tui/src/ovirt/node/utils/console.py
+++ b/scripts/tui/src/ovirt/node/utils/console.py
@@ -86,7 +86,7 @@
self.plugin.dry_or(lambda: e.commit())
self.add_update("\nAll changes were applied successfully.")
except Exception as e:
- self.add_update(("\nAn error occurred while applying the changes:"))
+ self.add_update("\nAn error occurred while applying the changes:")
self.add_update("%s" % e)
self.logger.warning("'%s' on transaction '%s': %s - %s" %
(type(e), self.transaction, e, e.message))
--
To view, visit http://gerrit.ovirt.org/11919
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I74d179c47779a15f2d611568caa2358fd409c6c4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list