mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Fix different invocations of check_fish
Particularly nodediscover register can fail. Those invocations are XCC specific, so the targtype should not matter in those cases.
This commit is contained in:
parent
cd91ed0b94
commit
53b9a13a51
@ -451,7 +451,11 @@ def _find_service(service, target):
|
||||
def check_fish(urldata, port=443, verifycallback=None):
|
||||
if not verifycallback:
|
||||
verifycallback = lambda x: True
|
||||
url, data, targtype = urldata
|
||||
try:
|
||||
url, data, targtype = urldata
|
||||
except ValueError:
|
||||
url, data = urldata
|
||||
targtype = 'service:redfish-bmc'
|
||||
try:
|
||||
wc = webclient.SecureHTTPConnection(_get_svrip(data), port, verifycallback=verifycallback, timeout=1.5)
|
||||
peerinfo = wc.grab_json_response(url, headers={'Accept': 'application/json'})
|
||||
|
Loading…
Reference in New Issue
Block a user