[Ovirt-devel] [PATCH] change restart button label to reboot

Joey Boggs jboggs at redhat.com
Wed Jul 20 21:07:36 UTC 2011


Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
 scripts/ovirt-config-installer.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/ovirt-config-installer.py b/scripts/ovirt-config-installer.py
index 46b917b..1dba72a 100644
--- a/scripts/ovirt-config-installer.py
+++ b/scripts/ovirt-config-installer.py
@@ -35,7 +35,7 @@ BACK_BUTTON = "Back"
 NEXT_BUTTON = "Next"
 FINISH_BUTTON = "Finish"
 INSTALL_BUTTON = "Install"
-RESTART_BUTTON = "Restart"
+REBOOT_BUTTON = "Reboot"
 POWEROFF_BUTTON = "Power Off"
 CONTINUE_BUTTON = "Continue"
 SHELL_BUTTON = "Drop To Shell"
@@ -700,7 +700,7 @@ class NodeInstallScreen:
             current_element += 1
             buttons = []
             if self.__current_page == FINISHED_PAGE:
-                buttons.append(["Restart", RESTART_BUTTON])
+                buttons.append(["Reboot", REBOOT_BUTTON])
             if self.__current_page != FINISHED_PAGE:
                 buttons.append(["Quit", QUIT_BUTTON])
             if self.__current_page != WELCOME_PAGE and self.__current_page != FAILED_PAGE and self.__current_page != FINISHED_PAGE:
@@ -712,7 +712,7 @@ class NodeInstallScreen:
             if self.__current_page == PASSWORD_PAGE:
                 buttons.append(["Install", INSTALL_BUTTON])
             if self.__current_page == FAILED_PAGE:
-                buttons.append(["Restart", RESTART_BUTTON])
+                buttons.append(["Reboot", REBOOT_BUTTON])
                 buttons.append(["Power Off", POWEROFF_BUTTON])
             buttonbar = ButtonBar(screen, buttons, compact = 1)
             buttongrid = Grid(1,1)
@@ -744,12 +744,12 @@ class NodeInstallScreen:
                     os.system("/usr/bin/clear;/bin/bash")
                 elif pressed == QUIT_BUTTON:
                     abort = ButtonChoiceWindow(self.screen, "Abort Installation","The installation of %s is not complete." %
-             PRODUCT_SHORT, buttons = ['Back','Restart','Shutdown'])
-                    if abort == "restart":
+             PRODUCT_SHORT, buttons = ['Back','Reboot','Shutdown'])
+                    if abort == "reboot":
                         os.system("/usr/bin/clear;reboot")
                     elif abort == "shutdown":
                         os.system("/usr/bin/clear;halt")
-                elif pressed == RESTART_BUTTON:
+                elif pressed == REBOOT_BUTTON:
                     screen.finish()
                     os.system("/usr/bin/clear;/sbin/reboot")
                 elif pressed == POWEROFF_BUTTON:
-- 
1.7.5.4




More information about the ovirt-devel mailing list