# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Date 1168017895 0
# Node ID c75883680f28f9815a683b18402c50c0ab2438b4
# Parent e4aef8507b132e8b70c64c146726c42f4acc4a6b
[XEND] Fix some Xen API error declarations.
Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
tools/python/xen/xend/XendAPI.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff -r e4aef8507b13 -r c75883680f28 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py Fri Jan 05 16:28:42 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py Fri Jan 05 17:24:55 2007 +0000
@@ -543,14 +543,14 @@ class XendAPI:
try:
node = XendNode.instance()
if host_uuid != node.uuid:
- return xen_api_error([HOST_HANDLE_INVALID, host_uuid])
+ return xen_api_error(['HOST_HANDLE_INVALID', host_uuid])
elif _is_valid_ref(network_uuid, node.is_valid_network):
network = node.get_network(network_uuid)
return xen_api_success(node.PIF_create(name, mtu, vlan, mac,
network))
else:
- return xen_api_error([NETWORK_HANDLE_INVALID, network_uuid])
+ return xen_api_error(['NETWORK_HANDLE_INVALID', network_uuid])
except NetworkAlreadyConnected, exn:
return xen_api_error(['NETWORK_ALREADY_CONNECTED',
network_uuid, exn.pif_uuid])
@@ -604,7 +604,7 @@ class XendAPI:
return xen_api_success(XendNode.instance().PIF_create_VLAN(
ref, network, vlan))
else:
- return xen_api_error([NETWORK_HANDLE_INVALID, network])
+ return xen_api_error(['NETWORK_HANDLE_INVALID', network])
except NetworkAlreadyConnected, exn:
return xen_api_error(['NETWORK_ALREADY_CONNECTED',
network, exn.pif_uuid])
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|