Reformat so columns line up in 'mclu list' output.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 14 May 2014 20:35:44 +0000 (21:35 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 14 May 2014 20:35:44 +0000 (21:35 +0100)
mclu_list.py

index 1ddd445..4b2c956 100644 (file)
@@ -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