From: Ian Jackson Date: Fri, 2 Jul 2010 16:56:05 +0000 (+0100) Subject: tools/pygrub: Fix a typo handling device specs with no partition part X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11834^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=79b518480a830fe29a3814a8dd7c9129ff8cd03f;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 --- 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