[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Use correct hash key variable in checkDasdFmt()
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Use correct hash key variable in checkDasdFmt()
- Date: Wed, 5 Nov 2008 13:07:12 -1000
Caught by pychecker.
---
partedUtils.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/partedUtils.py b/partedUtils.py
index b8fc352..5cb039e 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -312,11 +312,12 @@ def checkDasdFmt(disk, intf):
if intf:
try:
devs = isys.getDasdDevPort()
- dev = "/dev/%s (%s)" %(disk.dev.path[5:], devs[device])
+ devnode = disk.dev.path[5:]
+ dev = "/dev/%s (%s)" % (devnode, devs[devnode],)
except Exception, e:
log.critical("exception getting dasd dev ports: %s" %(e,))
dev = "/dev/%s" %(disk.dev.path[5:],)
-
+
rc = intf.messageWindow(_("Warning"),
_("The device %s is LDL formatted instead of "
"CDL formatted. LDL formatted DASDs are not "
@@ -333,7 +334,7 @@ def checkDasdFmt(disk, intf):
return -1
else:
return 1
-
+
def checkDiskLabel(disk, intf):
"""Check that the disk label on disk is valid for this machine type."""
--
1.6.0.2
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]