diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-03-18 16:29:47 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-03-18 19:36:39 +0100 |
commit | 23c2a553506ffc8a11051c63730926c6c7cc3f41 (patch) | |
tree | df8c70d4b64b23b4958c0ca097b8d2043ee831fc /storage/iscsi.py | |
parent | d380c8d630d40ea6aaf513e3f0941f44b0334394 (diff) | |
download | anaconda-23c2a553506ffc8a11051c63730926c6c7cc3f41.tar.gz anaconda-23c2a553506ffc8a11051c63730926c6c7cc3f41.tar.xz anaconda-23c2a553506ffc8a11051c63730926c6c7cc3f41.zip |
Do not traceback when writing anaconda.ks with iscsi with auth info.
Diffstat (limited to 'storage/iscsi.py')
-rw-r--r-- | storage/iscsi.py | 8 |
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): |