diff --git a/client-cli/cli_lib/cluster.py b/client-cli/cli_lib/cluster.py index 9b06239d..2ead7814 100644 --- a/client-cli/cli_lib/cluster.py +++ b/client-cli/cli_lib/cluster.py @@ -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() diff --git a/client-common/cluster.py b/client-common/cluster.py index e7ad1503..dbd0f5a9 100644 --- a/client-common/cluster.py +++ b/client-common/cluster.py @@ -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