[node-patches] Change in ovirt-node[master]: Show a dialog before entering the rescue console

rbarry at redhat.com rbarry at redhat.com
Wed Aug 7 22:14:02 UTC 2013


Ryan Barry has uploaded a new change for review.

Change subject: Show a dialog before entering the rescue console
......................................................................

Show a dialog before entering the rescue console

One of the things lost in the transition to the new TUI was an
indication/dialog before entering the rescue shell. Add it back.

Change-Id: I37bd24c89ba8f4272435aa846f658a0a06d5aa08
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=981142
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
A ovirt-node-plugin-puppet-3.0.0-0.999.20130628175613gitaeebf6f.fc18.noarch.rpm
M src/ovirt/node/app.py
2 files changed, 10 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/95/17795/1

diff --git a/ovirt-node-plugin-puppet-3.0.0-0.999.20130628175613gitaeebf6f.fc18.noarch.rpm b/ovirt-node-plugin-puppet-3.0.0-0.999.20130628175613gitaeebf6f.fc18.noarch.rpm
new file mode 100644
index 0000000..b10bd7f
--- /dev/null
+++ b/ovirt-node-plugin-puppet-3.0.0-0.999.20130628175613gitaeebf6f.fc18.noarch.rpm
Binary files differ
diff --git a/src/ovirt/node/app.py b/src/ovirt/node/app.py
index 9e061c7..2bad712 100644
--- a/src/ovirt/node/app.py
+++ b/src/ovirt/node/app.py
@@ -391,9 +391,18 @@
         def open_console():
             utils.process.call("clear ; bash", shell=True)
 
-        try:
+        def return_ok(dialog, changes):
             with self.ui.suspended():
                 open_console()
+
+        try:
+            txt = "Making changes in the rescue shell is unsupported. Do not "
+            txt += "use this without guidance from support representatives"
+            dialog = ui.ConfirmationDialog("dialog.shell", "Rescue Shell", txt)
+
+            dialog.buttons[0].on_activate.connect(return_ok)
+            self.show(dialog)
+
         except:
             # Error when the UI is not running
             open_console()


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

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