From 1c09f2768075322fcd4d71d71fc8cda536a99223 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 14 May 2014 21:35:44 +0100 Subject: [PATCH] Reformat so columns line up in 'mclu list' output. --- mclu_list.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mclu_list.py b/mclu_list.py index 1ddd445..4b2c956 100644 --- a/mclu_list.py +++ b/mclu_list.py @@ -53,8 +53,9 @@ def run (c, args): for guest in running.values(): node_name = guest['node'] dom_name = guest['vm'] - print "%s:%s\trunning" % (node_name, dom_name) + full_name = "%s:%s" % (node_name, dom_name) + print "%-40s running" % full_name if show_inactive: for name in inactive.values(): - print "%s\tinactive" % name + print "%-40s inactive" % name -- 1.8.3.1