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)
|
msg = "Failed to get sysinv client. Error: %s" % str(e)
|
||||||
raise Exception(msg)
|
raise Exception(msg)
|
||||||
|
|
||||||
|
|
||||||
def call_api(token_id, method, api_cmd, api_cmd_headers=None,
|
def call_api(token_id, method, api_cmd, api_cmd_headers=None,
|
||||||
api_cmd_payload=None, timeout_in_secs=40):
|
api_cmd_payload=None, timeout_in_secs=40):
|
||||||
|
|
||||||
|
@ -167,7 +167,6 @@ class PatchService(object):
|
|||||||
|
|
||||||
return self.sock_in
|
return self.sock_in
|
||||||
|
|
||||||
|
|
||||||
def setup_socket(self):
|
def setup_socket(self):
|
||||||
self.socket_lock_acquire()
|
self.socket_lock_acquire()
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ def is_host_locked_and_online(host):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def are_all_hosts_unlocked_and_online():
|
def are_all_hosts_unlocked_and_online():
|
||||||
for ihost in get_ihost_list():
|
for ihost in get_ihost_list():
|
||||||
if ihost.administrative != constants.ADMIN_UNLOCKED or ihost.availability != constants.AVAILABILITY_AVAILABLE:
|
if ihost.administrative != constants.ADMIN_UNLOCKED or ihost.availability != constants.AVAILABILITY_AVAILABLE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user