From 74f9ac9665312dea0796f56e4366535680b5c9c7 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 13 Aug 2008 13:40:38 +0100 Subject: [PATCH] xend: Make sure that 'PV_kernel' config param is not blank when assigning it to 'loader' param. This fixes a failure of 'xm create' via xen-api. Signed-off-by: Yosuke Iwamatsu --- tools/python/xen/xend/XendConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index afc8cd3caf..c49bfd8a79 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -448,7 +448,7 @@ class XendConfig(dict): self['platform']['hpet'] = 0 if 'loader' not in self['platform']: # Old configs may have hvmloader set as PV_kernel param - if self.has_key('PV_kernel'): + if self.has_key('PV_kernel') and self['PV_kernel'] != '': self['platform']['loader'] = self['PV_kernel'] self['PV_kernel'] = '' else: -- 2.30.2