Fix ping when no stdout is given
Change-Id: I0cf1c52f16fb7630cbba3be057fa90867e8b7356
This commit is contained in:
parent
db5d953046
commit
82d1584e59
@ -183,10 +183,11 @@ def iter_statistics(parameters=None, ssh_client=None, until=None, check=True,
|
||||
pass
|
||||
|
||||
else:
|
||||
if result.exit_status is not None:
|
||||
if result.exit_status is not None and result.stdout:
|
||||
statistics = _statistics.parse_ping_statistics(
|
||||
output=result.stdout, begin_interval=now,
|
||||
end_interval=time.time())
|
||||
|
||||
yield statistics
|
||||
|
||||
transmitted += statistics.transmitted
|
||||
|
Loading…
x
Reference in New Issue
Block a user