2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 10:32:31 +00:00

Query the BMC rather than the SMM itself

This commit is contained in:
Jarrod Johnson
2025-06-17 15:09:38 -04:00
parent 935691d1f3
commit 4009aa1aa1

View File

@@ -1195,7 +1195,9 @@ def search_smms_by_cert(currsmm, cert, cfg):
cd = cfg.get_node_attributes(currsmm, ['hardwaremanagement.manager',
'pubkeys.tls_hardwaremanager'])
smmaddr = cd.get(currsmm, {}).get('hardwaremanagement.manager', {}).get('value', None)
wc = webclient.SecureHTTPConnection(currsmm, verifycallback=cv)
if not smmaddr:
smmaddr = currsmm
wc = webclient.SecureHTTPConnection(smmaddr, verifycallback=cv)
neighs = wc.grab_json_response('/scripts/neighdata.json')
except Exception:
return None