[node-patches] Change in ovirt-node[master]: ui: Fix dropping to console on exception

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Feb 19 13:02:24 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: ui: Fix dropping to console on exception
......................................................................

ui: Fix dropping to console on exception

Due of an incorrect import dropping to the console in case of an
exception lead to another exception.

Change-Id: I61cb71b5e591307b30885d3117f31b07fa832e20
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/app.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/96/12196/1

diff --git a/scripts/tui/src/ovirt/node/app.py b/scripts/tui/src/ovirt/node/app.py
index 9966994..a2b5e54 100644
--- a/scripts/tui/src/ovirt/node/app.py
+++ b/scripts/tui/src/ovirt/node/app.py
@@ -21,7 +21,7 @@
 from ovirt.node import base, utils, plugins, ui
 from ovirt.node.config import defaults
 from ovirt.node.ui import urwid_builder
-from ovirt.node.utils import system, Timer
+from ovirt.node.utils import system, Timer, console
 import argparse
 import logging
 import logging.config
@@ -299,9 +299,9 @@
         except Exception as e:
             utils.process.call("reset")
             self.logger.error("An error appeared in the UI: %s" % repr(e))
-            utils.console.writeln("Press ENTER to logout ...")
-            utils.console.writeln("or enter 's' to drop to shell")
-            if utils.console.wait_for_keypress() == 's':
+            console.writeln("Press ENTER to logout ...")
+            console.writeln("or enter 's' to drop to shell")
+            if console.wait_for_keypress() == 's':
                 self.__drop_to_shell()
 
     def quit(self):


--
To view, visit http://gerrit.ovirt.org/12196
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I61cb71b5e591307b30885d3117f31b07fa832e20
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