From a3c6f22b025e9c598c2955301e7785c0e8ad1002 Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Wed, 13 Jun 2018 12:58:26 -0400 Subject: [PATCH] Make shutdown list colour yellow --- pvc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pvc.py b/pvc.py index b3acd6ce..b67d2431 100755 --- a/pvc.py +++ b/pvc.py @@ -999,10 +999,12 @@ def _vm_list(hypervisor): for vm in vm_list: if vm_state[vm] == 'start': vm_state_colour = ansiiprint.green() - elif vm_state[vm] == 'stop': - vm_state_colour = ansiiprint.red() elif vm_state[vm] == 'restart': vm_state_colour = ansiiprint.yellow() + elif vm_state[vm] == 'shutdown': + vm_state_colour = ansiiprint.yellow() + elif vm_state[vm] == 'stop': + vm_state_colour = ansiiprint.red() else: vm_state_colour = ansiiprint.blue()