ia64/xen-unstable

changeset 12551:cbbfadf7c8a5

The legacy apis return a value of None on success, which was being converted to a value of 'nil' in the xmlrpc response.
The Xen IPI spec states that destroy, hard_shutdown, pause, resume, start, suspend, and unpause return void. This patch makes it so and permits proper parsing of the response by clients (libxen) that follow the spec.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author jfehlig@jfehlig2.provo.novell.com
date Fri Nov 17 16:21:14 2006 -0700 (2006-11-17)
parents f15b6cbb654b
children a8d2b1393b76
files tools/python/xen/xend/XendAPI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendAPI.py	Wed Nov 22 14:01:51 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendAPI.py	Fri Nov 17 16:21:14 2006 -0700
     1.3 @@ -257,8 +257,8 @@ def do_vm_func(fn_name, vm_ref, *args):
     1.4      """
     1.5      xendom = XendDomain.instance()
     1.6      fn = getattr(xendom, fn_name)
     1.7 -    return xen_api_success(xendom.do_legacy_api_with_uuid(
     1.8 -        fn, vm_ref, *args))
     1.9 +    xendom.do_legacy_api_with_uuid(fn, vm_ref, *args)
    1.10 +    return xen_api_success_void()
    1.11  
    1.12  
    1.13  class XendAPI: