From: Tim Deegan Subject: [PATCH] pygrub: fix a typo Date: Fri, 2 Jul 2010 14:06:21 +0100 Message-ID: <20100702130621.GL31695@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 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