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:
parent
ef68656bde
commit
fbfdc9322b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user