mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +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:
parent
e193e92fbf
commit
ba0e03d454
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user