Add displaying of overprovisioned status
This commit is contained in:
parent
a117927be0
commit
306d024fb8
3
pvc.py
3
pvc.py
|
@ -570,6 +570,9 @@ RAM (MiB): {node_mem_total: <6} {node_mem_used: <6} {node_mem_free: <6} {node_me
|
||||||
|
|
||||||
if node_domain_state[node_name] == 'ready':
|
if node_domain_state[node_name] == 'ready':
|
||||||
domain_state_colour = ansiiprint.green()
|
domain_state_colour = ansiiprint.green()
|
||||||
|
elif node_mem_allocated[node_name] >= node_mem_total[node_name]:
|
||||||
|
node_domain_state[node_name] == 'overprov'
|
||||||
|
domain_state_colour = ansiiprint.red()
|
||||||
else:
|
else:
|
||||||
domain_state_colour = ansiiprint.blue()
|
domain_state_colour = ansiiprint.blue()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue