From 306d024fb867ed67ffaf4884e1cb1f3060e3fe36 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Tue, 19 Jun 2018 17:30:20 -0400 Subject: [PATCH] Add displaying of overprovisioned status --- pvc.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pvc.py b/pvc.py index af79e211..2eaa0c05 100755 --- a/pvc.py +++ b/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': 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: domain_state_colour = ansiiprint.blue()