From e523b229561c0c7261257b106c694708e7db0424 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 19 Sep 2007 20:32:59 +0000 Subject: A couple more pychecker error fixes. That should do it for now. --- partedUtils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'partedUtils.py') 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 -- cgit