PATCH[RHEL53]: fix traceback on ibft systems when not using chap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

The subject says it all, this should fix 432819

Regards,

Hans
diff --git a/iscsi.py b/iscsi.py
index 37366cb..89220c0 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -388,10 +388,20 @@ class iscsi(object):
 
             self.updateIscsidConf(record)
 
+            if record.has_key('node.session.auth.username'):
+                username = record['node.session.auth.username']
+            else:
+                username = None
+
+            if record.has_key('node.session.auth.password'):
+                password = record['node.session.auth.password']
+            else:
+                password = None
+
             t = iscsiTarget(ipaddr=record['node.conn[%s].address' % (n,)],
                             port=record['node.conn[%s].port' % (n,)],
-                            user=record['node.session.auth.username'],
-                            pw=record['node.session.auth.password'],
+                            user=username,
+                            pw=password,
                             discover = False)
             self.targets.append(t)
 
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux