aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-07-16 14:00:36 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-07-16 14:00:36 +0100
commit975c2b7812fc2ddc291829210eea5790a03bfcc6 (patch)
tree06fdb65532772c2d827820d6e51b4a0f9bbe0f21
parent0b39ed80a9e8987f20692b71b0b7809b72eaf664 (diff)
downloadxen-975c2b7812fc2ddc291829210eea5790a03bfcc6.tar.gz
xen-975c2b7812fc2ddc291829210eea5790a03bfcc6.tar.bz2
xen-975c2b7812fc2ddc291829210eea5790a03bfcc6.zip
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> xen-unstable changeset: 21733:f35512e244ff xen-unstable date: Fri Jul 02 17:56:05 2010 +0100
-rw-r--r--tools/pygrub/src/GrubConf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py
index 0b946d3e46..bc0e53681f 100644
--- a/tools/pygrub/src/GrubConf.py
+++ b/tools/pygrub/src/GrubConf.py
@@ -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