diff options
author | Steffen Maier <maier@linux.vnet.ibm.com> | 2009-07-10 10:19:40 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-07-10 13:50:16 -1000 |
commit | f13f934cc9a8898b996731fbb950048ba3fbbc6d (patch) | |
tree | 877a6c338b58e9feaccfba4b432cf3bd32f78b98 /storage | |
parent | 7ba27add65625961717a473f6a5c01bb7baf00d6 (diff) | |
download | anaconda-f13f934cc9a8898b996731fbb950048ba3fbbc6d.tar.gz anaconda-f13f934cc9a8898b996731fbb950048ba3fbbc6d.tar.xz anaconda-f13f934cc9a8898b996731fbb950048ba3fbbc6d.zip |
error messages of zFCP on s390: log or pass to the UI
Diffstat (limited to 'storage')
-rw-r--r-- | storage/zfcp.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/storage/zfcp.py b/storage/zfcp.py index 7bb31b916..b948eb530 100644 --- a/storage/zfcp.py +++ b/storage/zfcp.py @@ -225,7 +225,7 @@ class ZFCP: try: self.addFCP(devnum, wwpn, fcplun) except ValueError, e: - log.warn("Invalid FCP device configuration: %s" %(e,)) + log.warn(str(e)) continue def addFCP(self, devnum, wwpn, fcplun): @@ -237,7 +237,10 @@ class ZFCP: if len(self.fcpdevs) == 0: return for d in self.fcpdevs: - d.offlineDevice() + try: + d.offlineDevice() + except ValueError, e: + log.warn(str(e)) def startup(self): if not self.hasReadConfig: @@ -247,7 +250,10 @@ class ZFCP: if len(self.fcpdevs) == 0: return for d in self.fcpdevs: - d.onlineDevice() + try: + d.onlineDevice() + except ValueError, e: + log.warn(str(e)) def writeKS(self, f): if len(self.fcpdevs) == 0: |