Fix up ordering here
This commit is contained in:
parent
306d024fb8
commit
88c3ca45b8
6
pvc.py
6
pvc.py
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue