[node-patches] Change in ovirt-node[master]: app: Don't reboot in dry mode

fabiand at fedoraproject.org fabiand at fedoraproject.org
Sat May 31 06:38:28 UTC 2014


Fabian Deutsch has uploaded a new change for review.

Change subject: app: Don't reboot in dry mode
......................................................................

app: Don't reboot in dry mode

Change-Id: I7441afcb18ec7d6b29ad32fd891e646ade656b84
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/installer/__main__.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/48/28248/1

diff --git a/src/ovirt/node/installer/__main__.py b/src/ovirt/node/installer/__main__.py
index ec7bae0..c988930 100644
--- a/src/ovirt/node/installer/__main__.py
+++ b/src/ovirt/node/installer/__main__.py
@@ -28,7 +28,8 @@
 
 def quit(instance):
     def ui_quit(dialog, changes):
-        utils.system.reboot()
+        if not instance.args.dry:
+            utils.system.reboot()
         instance.ui.quit()
     txt = "Are you sure you want to quit? The system will be rebooted."
     dialog = ui.ConfirmationDialog("dialog.exit", "Exit", txt,


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

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