Skip to contentSkip to conversation

pygrub: fix a typo

PATCH New Tim Deegan 1 participant 1 message Jul 2, 2010

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 pygrub: fix a typo

pygrub: fix a typo that causes exceptions when looking at device specifications that don't have a partition part (e.g. (hd0)).

tools/pygrub/src/GrubConf.py +1 -1
diff -r aecf092da748 tools/pygrub/src/GrubConf.py
@@ -61,7 +61,7 @@
         if self.part is not None:
             return "d%dp%d" %(self.disk, self.part)
         else:
-            return "d%d" %(self,disk,)
+            return "d%d" %(self.disk,)
 
     def get_disk(self):
         return self._disk