mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
This commit is contained in:
1 parent
7b0a6bf9f4
commit
3206f975b8
1 file changed
+2
-2
@@ -257,8 +257,8 @@ def do_vm_func(fn_name, vm_ref, *args):
|
||||
"""
|
||||
xendom = XendDomain.instance()
|
||||
fn = getattr(xendom, fn_name)
|
||||
return xen_api_success(xendom.do_legacy_api_with_uuid(
|
||||
fn, vm_ref, *args))
|
||||
xendom.do_legacy_api_with_uuid(fn, vm_ref, *args)
|
||||
return xen_api_success_void()
|
||||
|
||||
|
||||
class XendAPI:
|
||||
|
||||