[node-patches] Change in ovirt-node[master]: installer: Fix downgrade

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri May 3 11:49:23 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: installer: Fix downgrade
......................................................................

installer: Fix downgrade

Previously pressing the downgrade button didn't have any effect.
Now a real downgrade is initiated when pressing the downgrade button.

Change-Id: I075067098528359b8800e12e9f0a666f8e620b9a
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/installer/upgrade_page.py
M src/ovirt/node/installer/welcome_page.py
2 files changed, 7 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/99/14399/1

diff --git a/src/ovirt/node/installer/upgrade_page.py b/src/ovirt/node/installer/upgrade_page.py
index 0ce5c88..395dcc6 100644
--- a/src/ovirt/node/installer/upgrade_page.py
+++ b/src/ovirt/node/installer/upgrade_page.py
@@ -96,7 +96,7 @@
     def on_merge(self, effective_changes):
         changes = self.pending_changes(False)
         if changes.contains_any(["button.back"]):
-            self.application.ui.navigate.to_previous_plugin()
+            self.application.ui.navigate.to_first_plugin()
             return
 
         if changes.contains_any(["upgrade.current_password",
diff --git a/src/ovirt/node/installer/welcome_page.py b/src/ovirt/node/installer/welcome_page.py
index 5e6de35..f1a3c2c 100644
--- a/src/ovirt/node/installer/welcome_page.py
+++ b/src/ovirt/node/installer/welcome_page.py
@@ -75,6 +75,10 @@
             nav.to_plugin(installer.upgrade_page.Plugin)
             self._model["method"] = "upgrade"
 
+        elif "button.downgrade" in effective_changes:
+            nav.to_plugin(installer.upgrade_page.Plugin)
+            self._model["method"] = "downgrade"
+
         elif "button.reinstall" in effective_changes:
             nav.to_plugin(installer.upgrade_page.Plugin)
             self._model["method"] = "reinstall"
@@ -82,7 +86,8 @@
     def ___installation_options(self):
         if self.application.args.dry:
             return [ui.Button("button.install", "Install Hypervisor (dry)"),
-                    ui.Button("button.upgrade", "Upgrade Hypervisor (dry)")]
+                    ui.Button("button.upgrade", "Upgrade Hypervisor (dry)"),
+                    ui.Button("button.downgrade", "Downgrade Hypervisor (dry)")]
 
         media = utils.system.InstallationMedia()
 


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

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