|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Fix guest boot if set empty cdrom in conf
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1210670394 -3600
# Node ID 5d9430d492e3577d4c45909bef58710ad6a513b5
# Parent 7211d37de25b6073f0346bc8ff3f66e735952859
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@xxxxxxxxx>
---
tools/python/xen/xend/server/blkif.py | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 7211d37de25b -r 5d9430d492e3 tools/python/xen/xend/server/blkif.py
--- a/tools/python/xen/xend/server/blkif.py Tue May 13 10:16:54 2008 +0100
+++ b/tools/python/xen/xend/server/blkif.py Tue May 13 10:19:54 2008 +0100
@@ -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:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Fix guest boot if set empty cdrom in config file,
Xen patchbot-unstable <=
|
|
|
|
|