From 79b518480a830fe29a3814a8dd7c9129ff8cd03f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 2 Jul 2010 17:56:05 +0100 Subject: 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 --- tools/pygrub/src/GrubConf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/pygrub') 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 -- cgit v1.2.3