Reformat the output a bit to optimize visuals against terminal width

This commit is contained in:
Joshua Boniface 2018-06-11 20:44:39 -04:00
parent d66fbe556f
commit 8db80fd3dc
1 changed files with 2 additions and 2 deletions

4
pvc.py
View File

@ -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(),