From: Richard W.M. Jones Date: Wed, 14 May 2014 20:35:44 +0000 (+0100) Subject: Reformat so columns line up in 'mclu list' output. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=1c09f2768075322fcd4d71d71fc8cda536a99223;p=mclu.git Reformat so columns line up in 'mclu list' output. --- 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