[PATCH 1/3] Default to using the iscsi discovery credentials for login, if provided.

Chris Lumens clumens at redhat.com
Wed Apr 24 19:55:42 UTC 2013


---
 pyanaconda/ui/gui/spokes/advstorage/iscsi.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
index abc51c0..542d7a4 100644
--- a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
+++ b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
@@ -230,6 +230,11 @@ class ISCSIDialog(GUIObject):
             self._iscsiNotebook.set_current_page(1)
             self._okButton.set_sensitive(True)
 
+            # If some form of login credentials were used for discovery,
+            # default to using the same for login.
+            if self._authTypeCombo.get_active() != 0:
+                self._loginAuthTypeCombo.set_active(3)
+
         # We always want to enable this button, in case the user's had enough.
         self._cancelButton.set_sensitive(True)
         return False
-- 
1.8.1.2



More information about the anaconda-patches mailing list