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

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



# 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


 


Rackspace

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