summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-03-18 16:29:47 +0100
committerHans de Goede <hdegoede@redhat.com>2009-03-18 19:36:39 +0100
commit23c2a553506ffc8a11051c63730926c6c7cc3f41 (patch)
treedf8c70d4b64b23b4958c0ca097b8d2043ee831fc
parentd380c8d630d40ea6aaf513e3f0941f44b0334394 (diff)
downloadanaconda-23c2a553506ffc8a11051c63730926c6c7cc3f41.tar.gz
anaconda-23c2a553506ffc8a11051c63730926c6c7cc3f41.tar.xz
anaconda-23c2a553506ffc8a11051c63730926c6c7cc3f41.zip
Do not traceback when writing anaconda.ks with iscsi with auth info.
-rw-r--r--storage/iscsi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/iscsi.py b/storage/iscsi.py
index 11d36562b..7c425174d 100644
--- a/storage/iscsi.py
+++ b/storage/iscsi.py
@@ -263,11 +263,11 @@ class iscsi(object):
f.write("iscsi --ipaddr %s --port %s" %(n.address, n.port))
auth = n.getAuth()
if auth:
- f.write(" --user %s" %(n.username,))
- f.write(" --password %s" %(n.password,))
+ f.write(" --user %s" % auth.username)
+ f.write(" --password %s" % auth.password)
if len(auth.reverse_username):
- f.write(" --reverse-user %s" % (n.reverse_username,))
- f.write(" --reverse-password %s" % (n.reverse_password,))
+ f.write(" --reverse-user %s" % auth.reverse_username)
+ f.write(" --reverse-password %s" % auth.reverse_password)
f.write("\n")
def write(self, instPath, anaconda):