turn connect fail into defer

This commit is contained in:
Oliver Gorwits
2017-05-23 08:40:27 +01:00
parent eac1857043
commit 88ae9c00ba
4 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ sub _single_body {
my $snmp = snmp_connect($device);
if (!defined $snmp) {
return job_error("$job_type failed: could not SNMP connect to $host");
return job_defer("$job_type failed: could not SNMP connect to $host");
}
unless ($snmp->has_layer( $job_layer )) {