2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Raise errors during connection

This improves error behavior when login action
encounters an error.
This commit is contained in:
Jarrod Johnson 2019-12-04 10:06:18 -05:00
parent ef68656bde
commit fbfdc9322b

View File

@ -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: