mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
7901a462fd
commit
3aa462c629
1 file changed
+1
-1
@@ -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]))
|
||||