Skip to contentSkip to conversation

Restoring Xen API xend.domains patch

PATCH Yung Giang 1 participant 1 message Apr 10, 2007

lore
Share & tools
lore

Yung Giang

author
#0 lore raw

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.

tools/python/xen/xend/server/XMLRPCServer.py +2 -2
diff -r 3ac19fda0bc2 tools/python/xen/xend/server/XMLRPCServer.py
@@ -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