From 23c2a553506ffc8a11051c63730926c6c7cc3f41 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 18 Mar 2009 16:29:47 +0100 Subject: Do not traceback when writing anaconda.ks with iscsi with auth info. --- storage/iscsi.py | 8 ++++---- 1 file 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): -- cgit