ia64/xen-unstable

changeset 17644:5d9430d492e3

Fix guest boot if set empty cdrom in config file

This is because function "uname = config.get('uname', '')" returns '',
rather than None, if uname is not in config variable.

Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 13 10:19:54 2008 +0100 (2008-05-13)
parents 7211d37de25b
children 1b7042d60351
files tools/python/xen/xend/server/blkif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/blkif.py	Tue May 13 10:16:54 2008 +0100
     1.2 +++ b/tools/python/xen/xend/server/blkif.py	Tue May 13 10:19:54 2008 +0100
     1.3 @@ -47,7 +47,7 @@ class BlkifController(DevController):
     1.4          except ValueError:
     1.5              dev_type = "disk"
     1.6  
     1.7 -        if uname is None:
     1.8 +        if uname == '':
     1.9              if dev_type == 'cdrom':
    1.10                  (typ, params) = ("", "")
    1.11              else: