diff --git a/software/software/constants.py b/software/software/constants.py index 8ef02b7f..a250c049 100644 --- a/software/software/constants.py +++ b/software/software/constants.py @@ -130,6 +130,7 @@ STORAGE = 'storage' WORKER = 'worker' AVAILABILITY_ONLINE = 'online' +AVAILABILITY_AVAILABLE = 'available' ADMIN_LOCKED = 'locked' ADMIN_UNLOCKED = 'unlocked' diff --git a/software/software/sysinv_utils.py b/software/software/sysinv_utils.py index 0acd3140..32aa375f 100644 --- a/software/software/sysinv_utils.py +++ b/software/software/sysinv_utils.py @@ -63,7 +63,7 @@ def is_host_locked_and_online(host): def are_all_hosts_unlocked_and_online(): for ihost in get_ihost_list(): - if ihost.administrative != constants.ADMIN_UNLOCKED or ihost.availability != constants.AVAILABILITY_ONLINE: + if ihost.administrative != constants.ADMIN_UNLOCKED or ihost.availability != constants.AVAILABILITY_AVAILABLE: return False return True