mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
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:
1 parent
baa1aae9cf
commit
79b518480a
1 file changed
+1
-1
@@ -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
|
||||
|
||||