From: Keir Fraser Date: Fri, 16 Jul 2010 13:00:36 +0000 (+0100) Subject: tools/pygrub: Fix a typo handling device specs with no partition part X-Git-Tag: 4.0.1-rc4~6 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=975c2b7812fc2ddc291829210eea5790a03bfcc6;p=xen.git 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 xen-unstable changeset: 21733:f35512e244ff xen-unstable date: Fri Jul 02 17:56:05 2010 +0100 --- 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