projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baa1aae
)
tools/pygrub: Fix a typo handling device specs with no partition part
author
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Fri, 2 Jul 2010 16:56:05 +0000
(17:56 +0100)
committer
Ian Jackson
<Ian.Jackson@eu.citrix.com>
Fri, 2 Jul 2010 16:56:05 +0000
(17:56 +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>
tools/pygrub/src/GrubConf.py
patch
|
blob
|
history
diff --git
a/tools/pygrub/src/GrubConf.py
b/tools/pygrub/src/GrubConf.py
index 0b946d3e46d72d4281b841ff20248a60e6f9d1b7..bc0e53681ffc14a8c9607d7b62e374cbd04f0fb1 100644
(file)
--- 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