Add displaying of overprovisioned status

This commit is contained in:
Joshua Boniface 2018-06-19 17:30:20 -04:00
parent a117927be0
commit 306d024fb8
1 changed files with 3 additions and 0 deletions

3
pvc.py
View File

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