2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Fix discovery of old SMM firmware

Older SMM firmware will not have neighbor data, ignore and move on
in such a case.
This commit is contained in:
Jarrod Johnson 2018-05-17 14:20:59 -04:00
parent 22049002bb
commit d6b7c536d5

View File

@ -741,6 +741,8 @@ def get_smm_neighbor_fingerprints(smmaddr, cv):
smmaddr = '[{0}]'.format(smmaddr)
wc = webclient.SecureHTTPConnection(smmaddr, verifycallback=cv)
neighs = wc.grab_json_response('/scripts/neighdata.json')
if not neighs:
return
for idx in (4, 5):
if 'sha256' not in neighs[idx]:
continue