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

@@ -23,7 +23,7 @@ sub _set_device_generic {
# snmp connect using rw community
my $info = snmp_connect_rw($ip)
or return job_error("Failed to connect to device [$ip] to update $slot");
or return job_defer("Failed to connect to device [$ip] to update $slot");
my $method = 'set_'. $slot;
my $rv = $info->$method($data);