aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-14 09:07:56 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-08-14 09:07:56 +0000
commitdee1ddf4e8158a3658a999f2b4e3161bc162405f (patch)
treea83e7a682d79e0eedca9743b9f502b0739b4ef98
parent069ccbe5a55a8680d37e579c1b456f3df426f31e (diff)
downloadxen-dee1ddf4e8158a3658a999f2b4e3161bc162405f.tar.gz
xen-dee1ddf4e8158a3658a999f2b4e3161bc162405f.tar.bz2
xen-dee1ddf4e8158a3658a999f2b4e3161bc162405f.zip
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 <aliguori@us.ibm.com>
-rw-r--r--tools/python/xen/xm/main.py5
1 files 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: