From 788d3ac26b864ba8ff888098e6a05d8452c3c4a8 Mon Sep 17 00:00:00 2001 From: Brian De Wolf Date: Sat, 28 Apr 2018 03:43:39 -0700 Subject: [PATCH] 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. --- bin/netdisco-sshcollector | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/netdisco-sshcollector b/bin/netdisco-sshcollector index f387758e..75d147c5 100755 --- a/bin/netdisco-sshcollector +++ b/bin/netdisco-sshcollector @@ -97,6 +97,7 @@ sub main { password => $host->{password}, timeout => 30, async => 0, + default_stderr_file => '/dev/null', master_opts => [ -o => "StrictHostKeyChecking=no", -o => "BatchMode=no"