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-changelog

[Xen-changelog] [xen-unstable] xend: Don't call decode() if PV_{kernel,

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Don't call decode() if PV_{kernel, ramdisk} are ''
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Jul 2009 01:15:14 -0700
Delivery-date: Thu, 23 Jul 2009 01:15:47 -0700
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 1248336021 -3600
# Node ID 562ef30ea804aeabcd0b8eddf5148aef7abb6fdd
# Parent  83e6b019856904141225267da9b7c1d141eb40ad
xend: Don't call decode() if PV_{kernel,ramdisk} are ''

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendConfig.py |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 83e6b0198569 -r 562ef30ea804 tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py       Thu Jul 23 08:59:03 2009 +0100
+++ b/tools/python/xen/xend/XendConfig.py       Thu Jul 23 09:00:21 2009 +0100
@@ -2087,7 +2087,7 @@ class XendConfig(dict):
     def handle_fileuris(self):
         for arg in [('PV_kernel', 'use_tmp_kernel'), 
                     ('PV_ramdisk', 'use_tmp_ramdisk')]:
-            if self[arg[0]] != None:
+            if self[arg[0]]:
                 self[arg[0]], self[arg[1]] \
                     = xen.util.fileuri.schemes.decode(self[arg[0]])
                 log.debug("fileuri '%s' = '%s'" % (arg[0], self[arg[0]][:100]))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: Don't call decode() if PV_{kernel, ramdisk} are '', Xen patchbot-unstable <=