Stopping the logfile spam by piping STDERR to /dev/null (#8081)
This commit is contained in:
parent
e40f72e773
commit
ef63cfe8e4
1 changed files with 1 additions and 1 deletions
|
@ -101,5 +101,5 @@ class WOLSwitch(SwitchDevice):
|
|||
ping_cmd = ['ping', '-c', '1', '-W',
|
||||
str(DEFAULT_PING_TIMEOUT), str(self._host)]
|
||||
|
||||
status = sp.call(ping_cmd, stdout=sp.DEVNULL)
|
||||
status = sp.call(ping_cmd, stdout=sp.DEVNULL, stderr=sp.DEVNULL)
|
||||
self._state = not bool(status)
|
||||
|
|
Loading…
Add table
Reference in a new issue