WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] pygrub: fix a typo

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] pygrub: fix a typo
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Fri, 2 Jul 2010 14:06:21 +0100
Delivery-date: Fri, 02 Jul 2010 06:07:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
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>

diff -r aecf092da748 tools/pygrub/src/GrubConf.py
--- a/tools/pygrub/src/GrubConf.py      Wed Jun 30 22:12:54 2010 +0100
+++ b/tools/pygrub/src/GrubConf.py      Fri Jul 02 14:03:55 2010 +0100
@@ -61,7 +61,7 @@
         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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] pygrub: fix a typo, Tim Deegan <=