Merge "Fix USM tox issues"

This commit is contained in:
Zuul 2024-08-06 13:55:01 +00:00 committed by Gerrit Code Review
commit bd16773cd8
5 changed files with 9 additions and 8 deletions

View File

@ -77,6 +77,7 @@ def get_sysinv_client(token, endpoint):
msg = "Failed to get sysinv client. Error: %s" % str(e)
raise Exception(msg)
def call_api(token_id, method, api_cmd, api_cmd_headers=None,
api_cmd_payload=None, timeout_in_secs=40):

View File

@ -167,7 +167,6 @@ class PatchService(object):
return self.sock_in
def setup_socket(self):
self.socket_lock_acquire()

View File

@ -61,6 +61,7 @@ def is_host_locked_and_online(host):
return True
return False
def are_all_hosts_unlocked_and_online():
for ihost in get_ihost_list():
if ihost.administrative != constants.ADMIN_UNLOCKED or ihost.availability != constants.AVAILABILITY_AVAILABLE: