WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEND] Fix some Xen API error declaration

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Fix some Xen API error declarations.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 05 Jan 2007 12:55:14 -0800
Delivery-date: Fri, 05 Jan 2007 12:56:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Fix some Xen API error declarations., Xen patchbot-unstable <=