[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] tools/pygrub: Fix a typo handling device specs with no partition part



# HG changeset patch
# User Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
# Date 1278089765 -3600
# Node ID f35512e244ffefaf14a9c92ab245411b875f349f
# Parent  eb34666befcca10dc8f542fd3f1e75ae6a6d7ac4
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@xxxxxxxxxx>
---
 tools/pygrub/src/GrubConf.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r eb34666befcc -r f35512e244ff tools/pygrub/src/GrubConf.py
--- a/tools/pygrub/src/GrubConf.py      Fri Jul 02 17:46:01 2010 +0100
+++ b/tools/pygrub/src/GrubConf.py      Fri Jul 02 17:56:05 2010 +0100
@@ -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

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.