[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] pygrub: fix attribute error when not found parser



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1260971830 0
# Node ID b24854b13e16e8acbb51403e3ac762b382960c6d
# Parent  65830c15627bd8855f9cd8e2d1d8ee032b5e3824
pygrub: fix attribute error when not found parser

Signed-off-by: Wei Kong <weikong.cn@xxxxxxxxx>
xen-unstable changeset:   20647:f9998fedea78
xen-unstable date:        Wed Dec 16 12:20:57 2009 +0000
---
 tools/pygrub/src/pygrub |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 65830c15627b -r b24854b13e16 tools/pygrub/src/pygrub
--- a/tools/pygrub/src/pygrub   Wed Dec 16 13:56:42 2009 +0000
+++ b/tools/pygrub/src/pygrub   Wed Dec 16 13:57:10 2009 +0000
@@ -393,7 +393,7 @@ class Grub:
             if fs.file_exists(f):
                 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.