ia64/xen-unstable

changeset 6162:e03ffa8839ab

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>
author kaf24@firebug.cl.cam.ac.uk
date Sun Aug 14 09:07:56 2005 +0000 (2005-08-14)
parents 719841477514
children 3fe7b0b7f6c5
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Sun Aug 14 09:06:32 2005 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Sun Aug 14 09:07:56 2005 +0000
     1.3 @@ -221,8 +221,9 @@ def xm_list(args):
     1.4          domsinfo.append(parse_doms_info(info))
     1.5                 
     1.6      if use_long:
     1.7 -        # this actually seems like a bad idea, as it just dumps sexp out
     1.8 -        PrettyPrint.prettyprint(info)
     1.9 +        for dom in doms:
    1.10 +            info = server.xend_domain(dom)
    1.11 +            PrettyPrint.prettyprint(info)
    1.12      elif show_vcpus:
    1.13          xm_show_vcpus(domsinfo)
    1.14      else: