2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +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 2d1ba7cc9b
commit f21db46cdd

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