Merge "Fix USM tox issues"
This commit is contained in:
commit
bd16773cd8
@ -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):
|
||||
|
||||
|
@ -167,7 +167,6 @@ class PatchService(object):
|
||||
|
||||
return self.sock_in
|
||||
|
||||
|
||||
def setup_socket(self):
|
||||
self.socket_lock_acquire()
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user