diff options
author | Chris Lumens <clumens@redhat.com> | 2007-09-19 20:32:59 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-09-19 20:32:59 +0000 |
commit | e523b229561c0c7261257b106c694708e7db0424 (patch) | |
tree | 17f426dce1095f5fe4f52499c37cd5d3c04d41b2 /partedUtils.py | |
parent | dc6dd742d400979f94ae1b0191afea33574475d4 (diff) | |
download | anaconda-e523b229561c0c7261257b106c694708e7db0424.tar.gz anaconda-e523b229561c0c7261257b106c694708e7db0424.tar.xz anaconda-e523b229561c0c7261257b106c694708e7db0424.zip |
A couple more pychecker error fixes. That should do it for now.
Diffstat (limited to 'partedUtils.py')
-rw-r--r-- | partedUtils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/partedUtils.py b/partedUtils.py index 5685cef96..6d776539b 100644 --- a/partedUtils.py +++ b/partedUtils.py @@ -316,8 +316,9 @@ def checkDasdFmt(disk, intf): if intf: try: + device = disk.dev.path[5:] devs = isys.getDasdDevPort() - dev = "/dev/%s (%s)" %(disk.dev.path[5:], devs[device]) + dev = "/dev/%s (%s)" %(device, devs[device]) except Exception, e: log.critical("exception getting dasd dev ports: %s" %(e,)) dev = "/dev/%s" %(disk.dev.path[5:],) @@ -673,7 +674,7 @@ class DiskSet: if rhpl.getArch() in ('s390', 's390x'): return - if DiskSet.dmList or []: + if DiskSet.dmList: dmraid.stopAllRaid(DiskSet.dmList) DiskSet.dmList = None |