Fix up ordering here

This commit is contained in:
Joshua Boniface 2018-06-19 17:35:54 -04:00
parent 306d024fb8
commit 88c3ca45b8
1 changed files with 3 additions and 3 deletions

6
pvc.py
View File

@ -568,11 +568,11 @@ RAM (MiB): {node_mem_total: <6} {node_mem_used: <6} {node_mem_free: <6} {node_me
else: else:
daemon_state_colour = ansiiprint.blue() daemon_state_colour = ansiiprint.blue()
if node_domain_state[node_name] == 'ready': if node_mem_allocated[node_name] >= node_mem_total[node_name]:
domain_state_colour = ansiiprint.green()
elif node_mem_allocated[node_name] >= node_mem_total[node_name]:
node_domain_state[node_name] == 'overprov' node_domain_state[node_name] == 'overprov'
domain_state_colour = ansiiprint.red() domain_state_colour = ansiiprint.red()
elif node_domain_state[node_name] == 'ready':
domain_state_colour = ansiiprint.green()
else: else:
domain_state_colour = ansiiprint.blue() domain_state_colour = ansiiprint.blue()