From 9cab1c6eb53bda8d7e711618d5a8619dd854dc9c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 8 Jan 2020 17:36:17 -0500 Subject: [PATCH] Don't go unhealthy for migrate/unmigrate VMs --- client-cli/cli_lib/cluster.py | 2 +- client-common/cluster.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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