From e055753931336c4534b45f9e6ea95f9e629b600a Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 27 May 2014 22:41:42 +0100 Subject: [PATCH] mclu list: Sort lists of guests when displaying them. --- mclu_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.3.1