WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Fix xm list --long

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix xm list --long
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Sat, 13 Aug 2005 14:25:52 -0500
Delivery-date: Sat, 13 Aug 2005 19:24:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
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 <aliguori@xxxxxxxxxx>
# Node ID a5e3caa6efbf3a46515c8b4f39219eaed75b2b6c
# Parent  73fccd848200b63230002b2d96df897ab232627a
Fix xm list --long to display info about all domains

diff -r 73fccd848200 -r a5e3caa6efbf tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri Aug 12 20:06:15 2005
+++ b/tools/python/xen/xm/main.py       Sat Aug 13 19:31:13 2005
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix xm list --long, Anthony Liguori <=