[XM] Fix some small bugs in XenAPI create code.

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie committed 2007-05-01 11:40:40 +01:00
1 parent 2b076853ac
commit f48f5ded45
1 file changed
+4 -4
+4 -4
View File
@@ -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:
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.