Make shutdown list colour yellow

This commit is contained in:
Joshua Boniface 2018-06-13 12:58:26 -04:00
parent 51843cf911
commit a3c6f22b02
1 changed files with 4 additions and 2 deletions

6
pvc.py
View File

@ -999,10 +999,12 @@ def _vm_list(hypervisor):
for vm in vm_list: for vm in vm_list:
if vm_state[vm] == 'start': if vm_state[vm] == 'start':
vm_state_colour = ansiiprint.green() vm_state_colour = ansiiprint.green()
elif vm_state[vm] == 'stop':
vm_state_colour = ansiiprint.red()
elif vm_state[vm] == 'restart': elif vm_state[vm] == 'restart':
vm_state_colour = ansiiprint.yellow() 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: else:
vm_state_colour = ansiiprint.blue() vm_state_colour = ansiiprint.blue()