Check it gets something from stderr before handling ping errors
Change-Id: I0527c3f3ba110f021c2b724e0102bbd034d06f55
This commit is contained in:
parent
3209a04152
commit
280f5d8367
@ -219,7 +219,8 @@ def execute_ping(parameters, ssh_client=None, check=True, **params):
|
||||
command = get_ping_command(parameters)
|
||||
result = sh.execute(command=command, ssh_client=ssh_client,
|
||||
timeout=parameters.timeout, check=False)
|
||||
if check and result.exit_status:
|
||||
|
||||
if check and result.exit_status and result.stderr:
|
||||
handle_ping_command_error(error=result.stderr)
|
||||
return result
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user