Skip to contentSkip to conversation

Fix xm list --long

PATCH New Anthony Liguori 1 participant 1 message Aug 13, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix xm list --long

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

Regards,

Anthony Liguori

# HG changeset patch
# User Anthony Liguori <[email protected]> # Node ID a5e3caa6efbf3a46515c8b4f39219eaed75b2b6c # Parent 73fccd848200b63230002b2d96df897ab232627a Fix xm list --long to display info about all domains

tools/python/xen/xm/main.py +3 -2
diff -r 73fccd848200 -r a5e3caa6efbf tools/python/xen/xm/main.py
@@ -224,8 +224,9 @@
         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)
     elif format:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel