ia64/xen-unstable

changeset 13286:c75883680f28

[XEND] Fix some Xen API error declarations.

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Fri Jan 05 17:24:55 2007 +0000 (2007-01-05)
parents e4aef8507b13
children 12a441c7b5c5 7c5eea5feebd
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Fri Jan 05 16:28:42 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Fri Jan 05 17:24:55 2007 +0000
     1.3 @@ -543,14 +543,14 @@ class XendAPI:
     1.4          try:
     1.5              node = XendNode.instance()
     1.6              if host_uuid != node.uuid:
     1.7 -                return xen_api_error([HOST_HANDLE_INVALID, host_uuid])
     1.8 +                return xen_api_error(['HOST_HANDLE_INVALID', host_uuid])
     1.9  
    1.10              elif _is_valid_ref(network_uuid, node.is_valid_network):
    1.11                  network = node.get_network(network_uuid)
    1.12                  return xen_api_success(node.PIF_create(name, mtu, vlan, mac,
    1.13                                                         network))
    1.14              else:
    1.15 -                return xen_api_error([NETWORK_HANDLE_INVALID, network_uuid])
    1.16 +                return xen_api_error(['NETWORK_HANDLE_INVALID', network_uuid])
    1.17          except NetworkAlreadyConnected, exn:
    1.18              return xen_api_error(['NETWORK_ALREADY_CONNECTED',
    1.19                                    network_uuid, exn.pif_uuid])
    1.20 @@ -604,7 +604,7 @@ class XendAPI:
    1.21                  return xen_api_success(XendNode.instance().PIF_create_VLAN(
    1.22                      ref, network, vlan))
    1.23              else:
    1.24 -                return xen_api_error([NETWORK_HANDLE_INVALID, network])
    1.25 +                return xen_api_error(['NETWORK_HANDLE_INVALID', network])
    1.26          except NetworkAlreadyConnected, exn:
    1.27              return xen_api_error(['NETWORK_ALREADY_CONNECTED',
    1.28                                    network, exn.pif_uuid])