Don't go unhealthy for migrate/unmigrate VMs

This commit is contained in:
Joshua Boniface 2020-01-08 17:36:17 -05:00
parent 23b1f6cb00
commit 9cab1c6eb5
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ def format_info(cluster_information, oformat):
if state == 'total' or state == 'start':
continue
if state == 'disable':
if state in ['disable', 'migrate', 'unmigrate']:
colour = ansiprint.blue()
else:
colour = ansiprint.yellow()

View File

@ -73,7 +73,7 @@ def getClusterInformation(zk_conn):
vm_report_status = list(range(0, vm_count))
for index, vm in enumerate(vm_list):
vm_state = vm['state']
if vm_state != 'start' and vm_state != 'disable':
if vm_state not in ['start', 'disable', 'migrate', 'unmigrate']:
vm_healthy_status[index] = False
else:
vm_healthy_status[index] = True