[PATCH] Use correct hash key variable in checkDasdFmt()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux