2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-04-28 03:17:47 +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:
Jarrod Johnson
2024-08-28 19:18:43 -04:00
parent 4edc2a6412
commit 55cdfae437

View File

@@ -481,7 +481,11 @@ async def _find_service(service, target):
async 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.WebConnection(_get_svrip(data), port, verifycallback=verifycallback)
peerinfo = await wc.grab_json_response(url, headers={'Accept': 'application/json'})