ia64/xen-unstable

changeset 18322:60af813ea458

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>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Aug 13 13:40:38 2008 +0100 (2008-08-13)
parents 29c242c06ac2
children 644a9d219973
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Wed Aug 13 13:39:40 2008 +0100
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Wed Aug 13 13:40:38 2008 +0100
     1.3 @@ -448,7 +448,7 @@ class XendConfig(dict):
     1.4                  self['platform']['hpet'] = 0
     1.5              if 'loader' not in self['platform']:
     1.6                  # Old configs may have hvmloader set as PV_kernel param
     1.7 -                if self.has_key('PV_kernel'):
     1.8 +                if self.has_key('PV_kernel') and self['PV_kernel'] != '':
     1.9                      self['platform']['loader'] = self['PV_kernel']
    1.10                      self['PV_kernel'] = ''
    1.11                  else: