summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-09-19 20:32:59 +0000
committerChris Lumens <clumens@redhat.com>2007-09-19 20:32:59 +0000
commite523b229561c0c7261257b106c694708e7db0424 (patch)
tree17f426dce1095f5fe4f52499c37cd5d3c04d41b2 /partedUtils.py
parentdc6dd742d400979f94ae1b0191afea33574475d4 (diff)
downloadanaconda-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.py5
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