Do not log an error when a host is unreachable while pinging (#40024)

pull/40027/head
J. Nick Koston 2020-09-13 09:44:37 -05:00 committed by GitHub
parent 621526bbae
commit f3d50e2104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -213,7 +213,8 @@ class PingDataSubProcess(PingData):
out_error,
)
if pinger.returncode != 0:
if pinger.returncode > 1:
# returncode of 1 means the host is unreachable
_LOGGER.exception(
"Error running command: `%s`, return code: %s",
" ".join(self._ping_cmd),