[PATCH 2/2] Accept iSCSI details on F12 press (#823447)

Jesse Keating jkeating at redhat.com
Fri Jul 6 16:35:08 UTC 2012


When F12 (the global default continue hotkey) is pressed the button
value is None.  But we still want to process the details when this
happens.  The use of bool here makes it a little easier to read.
---
 pyanaconda/textw/add_drive_text.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/textw/add_drive_text.py b/pyanaconda/textw/add_drive_text.py
index b28af4f..e27230b 100644
--- a/pyanaconda/textw/add_drive_text.py
+++ b/pyanaconda/textw/add_drive_text.py
@@ -172,7 +172,7 @@ class iSCSITextWizard(pih.iSCSIWizard):
         result = grid.run()
         button = grid.buttons.buttonPressed(result)
         self.screen.popWindow()
-        return True if button == TEXT_OK_CHECK else False
+        return bool(button == TEXT_OK_CHECK or result == "F12")
 
     def destroy_dialogs(self):
         pass
-- 
1.7.10.4



More information about the anaconda-patches mailing list