mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-27 15:50:24 +00:00
Provide more useful error on socket error
If a socket error occurred that wasn't -2, the client would get an error about KeyError, which wouldn't be helpful. raise the unhandled exception to provide more informative data in case of an issue.
This commit is contained in:
parent
cb8cd29022
commit
8eef064b9f
@ -344,6 +344,7 @@ class IpmiHandler(object):
|
||||
except socket.gaierror as ge:
|
||||
if ge[0] == -2:
|
||||
raise exc.TargetEndpointUnreachable(ge[1])
|
||||
raise
|
||||
self.ipmicmd = persistent_ipmicmds[(node, tenant)]
|
||||
self.ipmicmd.setup_confluent_keyhandler()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user