]> xenbits.xensource.com Git - xen.git/commitdiff
tools/pygrub: Fix a typo handling device specs with no partition part
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 13:00:36 +0000 (14:00 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 13:00:36 +0000 (14:00 +0100)
pygrub: fix a typo that causes exceptions when looking at device
specifications that don't have a partition part (e.g. (hd0)).

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset:   21733:f35512e244ff
xen-unstable date:        Fri Jul 02 17:56:05 2010 +0100

tools/pygrub/src/GrubConf.py

index 0b946d3e46d72d4281b841ff20248a60e6f9d1b7..bc0e53681ffc14a8c9607d7b62e374cbd04f0fb1 100644 (file)
@@ -61,7 +61,7 @@ class GrubDiskPart(object):
         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