From 93e9a54e86e8d256687d167a69bb3082ed3ab43f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 1 May 2019 11:46:02 -0400 Subject: [PATCH] Relay redfish error strings to client This provides a much better experience than 'unexpected' error. --- .../confluent/plugins/hardwaremanagement/redfish.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py index f9bd1a55..3ad26f42 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py @@ -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)