diff options
author | David Cantrell <dcantrell@redhat.com> | 2008-11-12 21:36:02 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2008-11-12 21:36:02 +0100 |
commit | dcb9f3b3b2d76982ce9cc7f6df6385409c7f416a (patch) | |
tree | 31dea9ed9d8003657d33225d296135c969b8e434 | |
parent | b5a48bfc44a8084b4c751e192c70eb1837e44e19 (diff) | |
download | anaconda-dcb9f3b3b2d76982ce9cc7f6df6385409c7f416a.tar.gz anaconda-dcb9f3b3b2d76982ce9cc7f6df6385409c7f416a.tar.xz anaconda-dcb9f3b3b2d76982ce9cc7f6df6385409c7f416a.zip |
Fix syntax error at partedUtils.py line 315 (#469734)
Fix syntax error at partedUtils.py line 315 (pychecker fix)
-rw-r--r-- | partedUtils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/partedUtils.py b/partedUtils.py index 942db02c9..4b14329b5 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.""" |