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 > Redhat > Fedora Desktop

 
 
LinkBack Thread Tools
 
Old 01-07-2010, 11:14 AM
Hans de Goede
 
Default Give the non mandatory iscsi --port argument a sane default

---
pykickstart/commands/iscsi.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pykickstart/commands/iscsi.py b/pykickstart/commands/iscsi.py
index d6c3af2..ff63401 100644
--- a/pykickstart/commands/iscsi.py
+++ b/pykickstart/commands/iscsi.py
@@ -32,7 +32,7 @@ class FC6_IscsiData(BaseData):
def __init__(self, *args, **kwargs):
BaseData.__init__(self, *args, **kwargs)
self.ipaddr = kwargs.get("ipaddr", "")
- self.port = kwargs.get("port", "")
+ self.port = kwargs.get("port", "3260")
self.target = kwargs.get("target", "")
self.user = kwargs.get("user", None)
self.password = kwargs.get("password", None)
@@ -44,7 +44,7 @@ class FC6_IscsiData(BaseData):
retval += " --target=%s" % self.target
if self.ipaddr != "":
retval += " --ipaddr=%s" % self.ipaddr
- if self.port != "":
+ if self.port != "3260":
retval += " --port=%s" % self.port
if self.user is not None:
retval += " --user=%s" % self.user
--
1.6.5.2

_______________________________________________
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 08:35 PM.

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