summaryrefslogtreecommitdiffstats
path: root/iscsi.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-10-06 21:55:48 +0000
committerJeremy Katz <katzj@redhat.com>2006-10-06 21:55:48 +0000
commitc5255c6494355ff290f7720f4a846e9f78dc45df (patch)
tree2c9ebd0484706a3460f0786b12aa70c5c8baf703 /iscsi.py
parent4007283a2fcb4afd23099204fe93b08d953814a5 (diff)
downloadanaconda-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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/iscsi.py b/iscsi.py
index 5df6f5c9f..413bfb76c 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -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)