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:
jfehlig@jfehlig2.provo.novell.com committed 2006-11-17 16:21:14 -07:00
1 parent 7b0a6bf9f4
commit 3206f975b8
1 file changed
+2 -2
+2 -2
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.