[node-patches] Change in ovirt-node[master]: Don't use utils.console.writeln() for the rescue shell

rbarry at redhat.com rbarry at redhat.com
Wed Sep 24 14:37:48 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: Don't use utils.console.writeln() for the rescue shell
......................................................................

Don't use utils.console.writeln() for the rescue shell

With the dialog in place, using console.writeln() prints the text
over the TUI and it is not visible, save for briefly where the
cursor was before the dialog came up. Echo it to the console when
the shell is started.

Change-Id: I10fa1de201481906a9b8eadbae962a65a8623e61
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1020678
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/app.py
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/42/33342/1

diff --git a/src/ovirt/node/app.py b/src/ovirt/node/app.py
index 0c74627..01a6cf3 100644
--- a/src/ovirt/node/app.py
+++ b/src/ovirt/node/app.py
@@ -390,10 +390,11 @@
         self.ui.register_plugin(plugin.ui_name(), plugin)
 
     def __drop_to_shell(self):
-        utils.console.writeln("Dropping to rescue shell ...")
 
         def open_console():
-            utils.process.call("clear ; bash", shell=True)
+            utils.process.call("clear ; echo \
+                               'Dropping to rescue shell...'; bash",
+                               shell=True)
 
         def return_ok(dialog, changes):
             with self.ui.suspended():


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I10fa1de201481906a9b8eadbae962a65a8623e61
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list