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:
Keir Fraser committed 2008-05-13 10:19:54 +01:00
1 parent 96ce955d7f
commit 8a588ca061
1 file changed
+1 -1
+1 -1
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.