From 8db80fd3dc4a703c49d223df1fd7762db840ab7d Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Mon, 11 Jun 2018 20:44:39 -0400 Subject: [PATCH] Reformat the output a bit to optimize visuals against terminal width --- pvc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pvc.py b/pvc.py index f382228f..fbd7f9c1 100755 --- a/pvc.py +++ b/pvc.py @@ -158,7 +158,7 @@ def node_list(): List all hypervisor nodes in the cluster. """ - node_list_header = ansiiprint.bold() + 'Name State: Daemon Nodes VMs CPUs RAM [MiB]: Total Used Free Allocated' + ansiiprint.end() + node_list_header = ansiiprint.bold() + 'Name State: Daemon Nodes Resources: VMs CPUs RAM [MiB]: Total Used Free Allocated' + ansiiprint.end() node_list = [] zk = pvcf.startZKConnection(zk_host) for node_name in zk.get_children('/nodes'): @@ -189,7 +189,7 @@ def node_list(): else: domain_state_colour = ansiiprint.blue() - node_output_string = '{3: <28} {0}{4: <8}{2} {1}{5: <8}{2} {6: <4} {7: <4} {8: <6} {9: <6} {10: <6} {11: <6}'.format( + node_output_string = '{3: <28} {0}{4: <6}{2} {1}{5: <8}{2} {6: <4} {7: <4} {8: <6} {9: <6} {10: <6} {11: <6}'.format( daemon_state_colour, domain_state_colour, ansiiprint.end(),