|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-3.1-testing] [XM] Fix some small bugs in XenAPI cre
# HG changeset patch
# User Tom Wilkie <tom.wilkie@xxxxxxxxx>
# Date 1178016040 -3600
# Node ID 2a530128f1dccd38a7a9514d4e7dbc08a0ee5760
# Parent 0e57b064f17a7013cedceb96b8020e475c9a5358
[XM] Fix some small bugs in XenAPI create code.
signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
tools/python/xen/xm/xenapi_create.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff -r 0e57b064f17a -r 2a530128f1dc tools/python/xen/xm/xenapi_create.py
--- a/tools/python/xen/xm/xenapi_create.py Tue May 01 11:36:44 2007 +0100
+++ b/tools/python/xen/xm/xenapi_create.py Tue May 01 11:40:40 2007 +0100
@@ -374,7 +374,7 @@ class xenapi_create:
"device":
vbd.attributes["device"].value,
"bootable":
- vbd.attributes["bootable"].value,
+ vbd.attributes["bootable"].value == "True",
"mode":
vbd.attributes["mode"].value,
"type":
@@ -401,9 +401,9 @@ class xenapi_create:
if network_name in networks.keys():
network_uuid = networks[network_name]
else:
- networks = dict([(record['name_label'], record['uuid'])
- for record in
- server.xenapi.network.get_all_records()])
+ networks = dict([(record['name_label'], ref)
+ for ref, record in
+
server.xenapi.network.get_all_records().items()])
if network_name in networks.keys():
network_uuid = networks[network_name]
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-3.1-testing] [XM] Fix some small bugs in XenAPI create code.,
Xen patchbot-3.1-testing <=
|
|
|
|
|