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/
Home Products Support Community News


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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] pygrub: fix attribute error when not found parser
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Dec 2009 06:00:44 -0800
Delivery-date: Wed, 16 Dec 2009 06:01:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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
-        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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] pygrub: fix attribute error when not found parser, Xen patchbot-3.4-testing <=