better status reporting from SNMPFastDiscover

This commit is contained in:
Oliver Gorwits
2023-08-11 13:28:55 +01:00
parent b9041f87b2
commit 5efcdd7707

View File

@@ -14,9 +14,10 @@ register_worker({ phase => 'check', driver => 'direct' }, sub {
and (not blessed $job->device or not $job->device->in_storage)) { and (not blessed $job->device or not $job->device->in_storage)) {
config->{'snmp_try_slow_connect'} = false; config->{'snmp_try_slow_connect'} = false;
debug sprintf '[%s] skipping long SNMP timeouts for initial discover', return Status->info("-> running with fast SNMP timeouts for initial discover");
$job->device;
} }
return Status->info("-> running with configured SNMP timeouts");
}); });
true; true;