tools/pygrub: Fix a typo handling device specs with no partition part

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>
This commit is contained in:
Ian Jackson committed 2010-07-02 17:56:05 +01:00
1 parent baa1aae9cf
commit 79b518480a
1 file changed
+1 -1
+1 -1
View 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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.