[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] pygrub: fix attribute error when not found parser
Signed-off-by: Wei Kong <weikong.cn@gmail.com> -- --- a/tools/pygrub/src/pygrubÂÂ 2009-12-15 03:18:10.000000000 +0800 +++ b/tools/pygrub/src/pygrubÂÂ 2009-12-15 03:17:41.000000000 +0800 @@ -398,7 +398,7 @@ class Grub: ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ self.cf = parser() ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ self.cf.filename = f ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ break -ÂÂÂÂÂÂÂ if self.cf.filename is None: +ÂÂÂÂÂÂÂ if self.__dict__.get('cf', None) is None: ÂÂÂÂÂÂÂÂÂÂÂÂ raise RuntimeError, "couldn't find bootloader config file in the image provided." ÂÂÂÂÂÂÂÂ f = fs.open_file(self.cf.filename) ÂÂÂÂÂÂÂÂ buf = f.read() _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |