From f21db46cdd40b9e2e74d3b38b85750210cef6af9 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 17 May 2018 14:20:59 -0400 Subject: [PATCH] Fix discovery of old SMM firmware Older SMM firmware will not have neighbor data, ignore and move on in such a case. --- confluent_server/confluent/discovery/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index 1cc31a9c..defb761a 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -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