[node-patches] Change in ovirt-node[master]: installer: Fix installed and media version

fabiand at fedoraproject.org fabiand at fedoraproject.org
Mon May 27 09:34:57 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: installer: Fix installed and media version
......................................................................

installer: Fix installed and media version

Previously the installed version and the version of the media were mixed
up in the wording of the installer.
Now the versions are used correctly.

rhbz#967390

Change-Id: I4a414b93e88da60d8aaadd62e5a32d222334c532
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/installer/core/welcome_page.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/81/15081/1

diff --git a/src/ovirt/node/installer/core/welcome_page.py b/src/ovirt/node/installer/core/welcome_page.py
index 76963c9..67ec36d 100644
--- a/src/ovirt/node/installer/core/welcome_page.py
+++ b/src/ovirt/node/installer/core/welcome_page.py
@@ -18,7 +18,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 # MA  02110-1301, USA.  A copy of the GNU General Public License is
 # also available at http://www.gnu.org/copyleft/gpl.html.
-from ovirt.node import plugins, ui, utils, installer
+from ovirt.node import plugins, ui, utils
 from ovirt.node.utils import virt, system
 import os
 
@@ -101,11 +101,11 @@
             try:
                 if media > installed:
                     return [ui.Button("button.upgrade",
-                                      "Upgrade %s to %s" % (media, installed))]
+                                      "Upgrade %s to %s" % (installed, media))]
                 elif media < installed:
                     return [ui.Button("button.downgrade",
-                                      "Downgrade %s to %s" % (media,
-                                                              installed))]
+                                      "Downgrade %s to %s" % (installed,
+                                                              media))]
                 return [ui.Button("button.reinstall",
                                   "Reinstall %s" % installed)]
             except:


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

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