aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-08-13 13:40:38 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-08-13 13:40:38 +0100
commit74f9ac9665312dea0796f56e4366535680b5c9c7 (patch)
tree63df6eb8d2aa16c5cab23927573bab0e8ba891d4
parente8c1df443f0ad19446e293634acd1cbf056d92cd (diff)
downloadxen-74f9ac9665312dea0796f56e4366535680b5c9c7.tar.gz
xen-74f9ac9665312dea0796f56e4366535680b5c9c7.tar.bz2
xen-74f9ac9665312dea0796f56e4366535680b5c9c7.zip
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 <y-iwamatsu@ab.jp.nec.com>
-rw-r--r--tools/python/xen/xend/XendConfig.py2
1 files changed, 1 insertions, 1 deletions
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: