X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=mclu_list.py;h=ace59a47a1fe9a69300cb99e2d1032c4635e6c4a;hb=e055753931336c4534b45f9e6ea95f9e629b600a;hp=4b2c956a191eba1e562e9cb55256a3bf33f588ac;hpb=1c09f2768075322fcd4d71d71fc8cda536a99223;p=mclu.git diff --git a/mclu_list.py b/mclu_list.py index 4b2c956..ace59a4 100644 --- a/mclu_list.py +++ b/mclu_list.py @@ -50,12 +50,12 @@ def run (c, args): running, inactive = lib.get_all_guests (c) if show_running: - for guest in running.values(): + for guest in sorted (running.values()): node_name = guest['node'] dom_name = guest['vm'] full_name = "%s:%s" % (node_name, dom_name) print "%-40s running" % full_name if show_inactive: - for name in inactive.values(): + for name in sorted (inactive.values()): print "%-40s inactive" % name