2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-04-14 09:12:34 +00:00

Remove incorrect check for HOSTUNREACH

This seems incorrect and further redundant with other portions
of the code.  This was causing a 'has no len()' error when encountered.
This commit is contained in:
Jarrod Johnson 2019-11-05 13:28:12 -05:00
parent 28bb143880
commit a748cc3032

View File

@ -175,7 +175,7 @@ class IpmiCommandWrapper(ipmicommand.Command):
raise exc.TargetEndpointUnreachable(se.strerror)
else:
raise exc.TargetEndpointUnreachable(str(se))
if isinstance(se, socket.timeout) or (len(se) > 1 and se[1] == 'EHOSTUNREACH'):
if isinstance(se, socket.timeout):
raise exc.TargetEndpointUnreachable('timeout')
raise
except pygexc.PyghmiException as pe: