diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-10-06 21:55:48 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-10-06 21:55:48 +0000 |
commit | c5255c6494355ff290f7720f4a846e9f78dc45df (patch) | |
tree | 2c9ebd0484706a3460f0786b12aa70c5c8baf703 /iscsi.py | |
parent | 4007283a2fcb4afd23099204fe93b08d953814a5 (diff) | |
download | anaconda-c5255c6494355ff290f7720f4a846e9f78dc45df.tar.gz anaconda-c5255c6494355ff290f7720f4a846e9f78dc45df.tar.xz anaconda-c5255c6494355ff290f7720f4a846e9f78dc45df.zip |
2006-10-06 Jeremy Katz <katzj@redhat.com>
* iscsi.py (iscsiTarget._getPortal): If the portal doesn't match
the ipaddr we discovered against, it's probably not what we wanted
(iscsi.write): Files moved.
Diffstat (limited to 'iscsi.py')
-rw-r--r-- | iscsi.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -230,7 +230,9 @@ class iscsi(object): os.close(fd) # copy "db" files. *sigh* - for d in ("/etc/iscsi/nodes", "/etc/iscsi/send_targets"): + if not os.path.isdir(instPath + "/var/lib/iscsi"): + os.makedirs(instPath + "/var/lib/iscsi", 0755) + for d in ("/var/lib/iscsi/nodes", "/var/lib/iscsi/send_targets"): if os.path.isdir(d): shutil.copytree(d, instPath + d) |