From dee1ddf4e8158a3658a999f2b4e3161bc162405f Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sun, 14 Aug 2005 09:07:56 +0000 Subject: Currently xm list --long only displays info about the last domain. The attached patch fixes this so it displays info about each domain. Signed-off-by: Anthony Liguori --- tools/python/xen/xm/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index d1a7fd4f57..e9f3bdb3c5 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -221,8 +221,9 @@ def xm_list(args): domsinfo.append(parse_doms_info(info)) if use_long: - # this actually seems like a bad idea, as it just dumps sexp out - PrettyPrint.prettyprint(info) + for dom in doms: + info = server.xend_domain(dom) + PrettyPrint.prettyprint(info) elif show_vcpus: xm_show_vcpus(domsinfo) else: -- cgit v1.2.3