2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Provide a catchall for general certificate mismatch

Beyond the special partial cases for firmware/hardware inventory,
provide a catchall for invalid public keys and a message for it.
This commit is contained in:
Jarrod Johnson 2018-01-29 14:17:01 -05:00
parent e193e92fbf
commit ba0e03d454

View File

@ -350,6 +350,11 @@ def perform_request(operator, node, element,
raise
except exc.TargetEndpointUnreachable as tu:
results.put(msg.ConfluentTargetTimeout(node, str(tu)))
except exc.PubkeyInvalid:
results.put(msg.ConfluentNodeError(
node,
'Mismatch detected between target certificate fingerprint '
'and pubkeys.tls_hardwaremanager attribute'))
except Exception as e:
results.put(e)
finally: