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:
parent
28bb143880
commit
a748cc3032
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user