[node-patches] Change in ovirt-node[master]: ui: Fix broken UI after resuming from shell

fabiand at fedoraproject.org fabiand at fedoraproject.org
Mon Mar 11 15:00:06 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: ui: Fix broken UI after resuming from shell
......................................................................

ui: Fix broken UI after resuming from shell

Previously some TUI elements were broken when returning from a bash
shell. This is now fixed.

rhbz#910541

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/34/12934/1

diff --git a/scripts/tui/src/ovirt/node/app.py b/scripts/tui/src/ovirt/node/app.py
index b1de6ee..219d95f 100644
--- a/scripts/tui/src/ovirt/node/app.py
+++ b/scripts/tui/src/ovirt/node/app.py
@@ -389,9 +389,13 @@
             self.ui.register_plugin(plugin.ui_name(), plugin)
 
     def __drop_to_shell(self):
-        with self.ui.suspended():
-            utils.process.call("reset")
-            utils.console.writeln("Dropping to rescue shell ...")
+        utils.console.writeln("Dropping to rescue shell ...")
+        try:
+            with self.ui.suspended():
+                #utils.process.call("reset")
+                utils.process.call("bash")
+        except:
+            # Error when the UI is not running
             utils.process.call("bash")
 
     def __check_terminal_size(self):


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

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