xend: Don't call decode() if PV_{kernel,ramdisk} are ''

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
This commit is contained in:
Keir Fraser committed 2009-07-23 09:00:21 +01:00
1 parent 7901a462fd
commit 3aa462c629
1 file changed
+1 -1
+1 -1
View File
@@ -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]))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.