summaryrefslogtreecommitdiffstats
path: root/zfcp.py
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.de>2004-08-25 12:24:04 +0000
committerKarsten Hopp <karsten@redhat.de>2004-08-25 12:24:04 +0000
commit8386103c37f6b76673bec062eb75592cc5624ef5 (patch)
tree9e1d2bf0b9dcdc31498a143ec398c4be1ed029dc /zfcp.py
parent89fe8e13402ab21ad3b3bf09b5429cdd113ec04e (diff)
downloadanaconda-8386103c37f6b76673bec062eb75592cc5624ef5.tar.gz
anaconda-8386103c37f6b76673bec062eb75592cc5624ef5.tar.xz
anaconda-8386103c37f6b76673bec062eb75592cc5624ef5.zip
- make sure strings for sysfs are all in lowercase
- log if files cannot be opened
Diffstat (limited to 'zfcp.py')
-rw-r--r--zfcp.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/zfcp.py b/zfcp.py
index 0a85f3c4b..ba9fc0809 100644
--- a/zfcp.py
+++ b/zfcp.py
@@ -86,10 +86,13 @@ class ZFCP:
fo.write("1")
fo.close()
except:
+ log("opening %s failed" %(fno,))
continue
except:
+ log("opening %s failed" %(fnu,))
continue
except:
+ log("opening %s failed" %(fnp,))
continue
def writeModprobeConf(self, fcpdevices):
@@ -109,7 +112,7 @@ class ZFCP:
if not foundalias:
try:
f = open("/tmp/modprobe.conf", "a")
- f.write("alias scsi_hostadapter zfcp")
+ f.write("alias scsi_hostadapter zfcp\n")
f.close()
except:
pass
@@ -151,7 +154,7 @@ class ZFCP:
lines = f.readlines()
f.close()
for line in lines:
- line = string.strip(line)
+ line = string.lower(string.strip(line))
fcpconf = string.split(line)
if len(line) > 0 and (len(fcpconf) != 5 or fcpconf[0][:1] == "#"): # nonempty but invalid line or comment
continue