mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
96ce955d7f
commit
8a588ca061
1 file changed
+1
-1
@@ -47,7 +47,7 @@ class BlkifController(DevController):
|
||||
except ValueError:
|
||||
dev_type = "disk"
|
||||
|
||||
if uname is None:
|
||||
if uname == '':
|
||||
if dev_type == 'cdrom':
|
||||
(typ, params) = ("", "")
|
||||
else:
|
||||
|
||||