dump sshcollector stderr into null (#396)

If SSH prints anything to stderr, it leaks out to the caller of sshcollect.
This change dumps it into /dev/null instead.
This commit is contained in:
Brian De Wolf
2018-04-28 03:43:39 -07:00
committed by Oliver Gorwits
parent 2f2c9f6b26
commit 788d3ac26b

View File

@@ -97,6 +97,7 @@ sub main {
password => $host->{password}, password => $host->{password},
timeout => 30, timeout => 30,
async => 0, async => 0,
default_stderr_file => '/dev/null',
master_opts => [ master_opts => [
-o => "StrictHostKeyChecking=no", -o => "StrictHostKeyChecking=no",
-o => "BatchMode=no" -o => "BatchMode=no"