WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] pygrub: fix attribute error when not found parser

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] pygrub: fix attribute error when not found parser
From: Wei Kong <weikong.cn@xxxxxxxxx>
Date: Tue, 15 Dec 2009 18:28:48 +0800
Delivery-date: Tue, 15 Dec 2009 02:52:18 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=krUqjfT2jPSfrIMF8LAs4Jfg/jJdSTB5iT1Oug2tZrg=; b=RwWIYW8B9XflfLrVu8ZxuZeUdOnWjqatSu5syRad9QIZLbzwpSLeylcZXhC9LfNlGJ D2rm6LjAQH/bfUq28CLY9TwxspF4BqWQMiGngi0OWN9ZwRka2b7/D4/H4XQB9TZYGH5O q8aHiWLdRXsUzQhFmXs70ibRVBeLrzQ4DuA5U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=HR+RxVlX4TUVhjKpaFJ4vI93XMOdGQwMdY6b4yNmHGRdZqv5//xl+r8X4BayEc3Ki2 2kAcEFpfg5wLxRfrLdEA4WvDFWc5Z2Ze2Axaw9iPRgLGcyHddA70LNlS7RT45TW1U9gs 92kopZupsfNuR0voIx1yvKscxoHooOK3AcClE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] pygrub: fix attribute error when not found parser, Wei Kong <=