aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorIan Jackson <Ian.Jackson@eu.citrix.com>2010-07-02 17:56:05 +0100
committerIan Jackson <Ian.Jackson@eu.citrix.com>2010-07-02 17:56:05 +0100
commit79b518480a830fe29a3814a8dd7c9129ff8cd03f (patch)
tree75d41974fabe81a43197cd6771e095d4b1a6acfc /tools/pygrub
parentbaa1aae9cfddec5c50b593b85a8ae447bd2b0225 (diff)
downloadxen-79b518480a830fe29a3814a8dd7c9129ff8cd03f.tar.gz
xen-79b518480a830fe29a3814a8dd7c9129ff8cd03f.tar.bz2
xen-79b518480a830fe29a3814a8dd7c9129ff8cd03f.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>
Diffstat (limited to 'tools/pygrub')
-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