From fbfdc9322b6ec669b5b16644659521d5875cd8db Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 4 Dec 2019 10:06:18 -0500 Subject: [PATCH] Raise errors during connection This improves error behavior when login action encounters an error. --- .../confluent/plugins/hardwaremanagement/redfish.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py index 5f8e3bc5..0f4cc46d 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py @@ -181,6 +181,9 @@ class IpmiCommandWrapper(ipmicommand.Command): except pygexc.PyghmiException as pe: if 'Access Denied' in str(pe): raise exc.TargetEndpointBadCredentials() + if 'Redfish not ready' in str(pe): + raise exc.TargetEndpointUnreachable('Redfish not yet ready') + raise def close_confluent(self): if self._attribwatcher: