Use consistent tense for VM states

Replace "failed" with "fail" and "disabled" with "disable" for
consistency with the remaining states.
This commit is contained in:
2019-10-23 23:53:25 -04:00
parent 6a4c75deb8
commit 531578fd28
3 changed files with 13 additions and 13 deletions

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 != 'disabled':
if vm_state != 'start' and vm_state != 'disable':
vm_healthy_status[index] = False
else:
vm_healthy_status[index] = True
@ -114,7 +114,7 @@ def getClusterInformation(zk_conn):
'stop,ready', 'stop,flush', 'stop,flushed', 'stop,unflush'
]
vm_state_combinations = [
'start', 'restart', 'shutdown', 'stop', 'disabled', 'failed', 'migrate', 'unmigrate'
'start', 'restart', 'shutdown', 'stop', 'disable', 'fail', 'migrate', 'unmigrate'
]
ceph_osd_state_combinations = [
'up,in', 'up,out', 'down,in', 'down,out'
@ -219,7 +219,7 @@ def format_info(cluster_information, oformat):
if state == 'total' or state == 'start':
continue
if state == 'disabled':
if state == 'disable':
colour = ansiprint.blue()
else:
colour = ansiprint.yellow()