[PATCH] If no iscsi nodes are discovered, return an empty list instead of None.

Chris Lumens clumens at redhat.com
Tue May 14 19:06:53 UTC 2013


---
 blivet/iscsi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/iscsi.py b/blivet/iscsi.py
index cecda6a..654de63 100644
--- a/blivet/iscsi.py
+++ b/blivet/iscsi.py
@@ -300,7 +300,7 @@ class iscsi(object):
                                                         port=int(port),
                                                         authinfo=authinfo)
             if found_nodes is None:
-                return None
+                return []
             self.discovered_targets[(ipaddr, port)] = []
             for node in found_nodes:
                 self.discovered_targets[(ipaddr, port)].append([node, False])
-- 
1.8.1.2



More information about the anaconda-patches mailing list