Stopping the logfile spam by piping STDERR to /dev/null (#8081)

This commit is contained in:
Myles Eftos 2017-06-18 19:44:41 +10:00 committed by Fabian Affolter
parent e40f72e773
commit ef63cfe8e4

View file

@ -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)