summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--zfcp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/zfcp.py b/zfcp.py
index c617b672b..0a85f3c4b 100644
--- a/zfcp.py
+++ b/zfcp.py
@@ -102,7 +102,7 @@ class ZFCP:
pass
foundalias = 0
for line in lines:
- if line == "alias scsi_hostadapter zfcp":
+ if string.find(string.strip(line), "alias scsi_hostadapter zfcp") == 0:
foundalias = 1
break
if len(fcpdevices):
@@ -118,7 +118,7 @@ class ZFCP:
try:
f = open("/tmp/modprobe.conf", "w")
for line in lines:
- if line != "alias scsi_hostadapter zfcp":
+ if string.find(string.strip(line), "alias scsi_hostadapter zfcp") != 0:
f.write(line)
f.close()
except: