[PATCH master] Update devicetree only if we logged in to some target in add iscsi dialog.

Radek Vykydal rvykydal at redhat.com
Mon Jul 22 14:01:54 UTC 2013


This is follow-up to commit 9ba6d47c8abc7f1738b7e0acd436669f4c7f1eab.
---
 pyanaconda/ui/gui/spokes/advstorage/iscsi.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
index 786631c..095c388 100644
--- a/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
+++ b/pyanaconda/ui/gui/spokes/advstorage/iscsi.py
@@ -119,6 +119,7 @@ class ISCSIDialog(GUIObject):
         self._loginError = False
 
         self._discoveredNodes = []
+        self._update_devicetree = False
 
     def refresh(self):
         self._authTypeCombo = self.builder.get_object("authTypeCombo")
@@ -164,7 +165,8 @@ class ISCSIDialog(GUIObject):
         self.window.destroy()
         # We need to call this to get the device nodes to show up
         # in our devicetree.
-        self.storage.devicetree.populate()
+        if self._update_devicetree:
+            self.storage.devicetree.populate()
         return rc
 
     ##
@@ -353,9 +355,9 @@ class ISCSIDialog(GUIObject):
                         self._loginError = msg
                         return
 
+                    self._update_devicetree = True
                     row[1] = False
 
-
                     # Only logging into one at a time.
                     break
 
-- 
1.7.11.7



More information about the anaconda-patches mailing list