Don't go unhealthy for migrate/unmigrate VMs
This commit is contained in:
parent
23b1f6cb00
commit
9cab1c6eb5
|
@ -129,7 +129,7 @@ def format_info(cluster_information, oformat):
|
||||||
if state == 'total' or state == 'start':
|
if state == 'total' or state == 'start':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if state == 'disable':
|
if state in ['disable', 'migrate', 'unmigrate']:
|
||||||
colour = ansiprint.blue()
|
colour = ansiprint.blue()
|
||||||
else:
|
else:
|
||||||
colour = ansiprint.yellow()
|
colour = ansiprint.yellow()
|
||||||
|
|
|
@ -73,7 +73,7 @@ def getClusterInformation(zk_conn):
|
||||||
vm_report_status = list(range(0, vm_count))
|
vm_report_status = list(range(0, vm_count))
|
||||||
for index, vm in enumerate(vm_list):
|
for index, vm in enumerate(vm_list):
|
||||||
vm_state = vm['state']
|
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
|
vm_healthy_status[index] = False
|
||||||
else:
|
else:
|
||||||
vm_healthy_status[index] = True
|
vm_healthy_status[index] = True
|
||||||
|
|
Loading…
Reference in New Issue