Restoring Xen API xend.domains patch
Hi-
This patch restores back the old xend.domains which orignally
(3.03and under) returns domains in any states (running, paused, crashed, etc).
Currently, xend.domains only returns domains in the running state and this is not compatible with the old xen API. Please take a look..
Thanks,
-Yung Giang
This patch restores back the old xend.domains which orignally (3.03 and under) returns domains in any states (running, paused, crashed, etc). Currently, xend.domains only returns domains in the running state and this is not compatible with the old xen API.
Signed-off-by Yung Giang <[email protected]>
tools/python/xen/xend/server/XMLRPCServer.py +2 -2
@@ -53,8 +53,8 @@ def domain(domid, full = 0): info = lookup(domid) return fixup_sxpr(info.sxpr(not full)) -def domains(detail = True, full = False): - return domains_with_state(detail, DOM_STATE_RUNNING, full) +def domains(detail = True, full = True): + return domains_with_state(detail, 'all', full) def domains_with_state(detail, state, full): if detail:
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel