FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 12-11-2008, 01:24 PM
Hans de Goede
 
Default PATCH: fix traceback on ibft systems when not using chap

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-12-2008, 07:46 PM
David Cantrell
 
Default PATCH: fix traceback on ibft systems when not using chap

Hans de Goede wrote:
> Hi All,
>
> The subject says it all, this should fix 432819
>
> Regards,
>
> Hans
>

I see no problems with this patch.

--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org