From 1d272ac5bc379895ca0dea80a9abe791893863e2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 26 Aug 2008 17:59:18 +0200 Subject: [PATCH] contrib/snmp-probe-host.px: Don't fail silently, but outupt an empty config. --- contrib/snmp-probe-host.px | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/contrib/snmp-probe-host.px b/contrib/snmp-probe-host.px index 1cfaa072..1d8f975b 100755 --- a/contrib/snmp-probe-host.px +++ b/contrib/snmp-probe-host.px @@ -224,11 +224,6 @@ sub probe_all $version--; } # while ($version > 0) - if (!@valid_data) - { - return; - } - print < Address "$address" @@ -239,6 +234,14 @@ EOF { print " Collect \"$_\"\n"; } + if (!@valid_data) + { + print < -- 2.30.2