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

Relay redfish error strings to client

This provides a much better experience than 'unexpected'
error.
This commit is contained in:
Jarrod Johnson 2019-05-01 11:46:02 -04:00
parent 25028c8acc
commit 93e9a54e86

View File

@ -313,7 +313,7 @@ def perform_request(operator, node, element,
node,
'Mismatch detected between target certificate fingerprint '
'and pubkeys.tls_hardwaremanager attribute'))
except pygexc.InvalidParameterValue as e:
except (pygexc.InvalidParameterValue, pygexc.RedfishError) as e:
results.put(msg.ConfluentNodeError(node, str(e)))
except Exception as e:
results.put(e)