netdisco-do overrides _min_age config
Give the user wanting to manually run a discover|arpnip|macsuck job in the foreground preference over the respective `_min_age` setting. Tiny quality of life improvement that mostly comes up in debugging.
This commit is contained in:
@@ -148,12 +148,14 @@ else {
|
||||
foreach my $spec (@job_specs) {
|
||||
my $worker = MyWorker->new();
|
||||
my $job = App::Netdisco::Backend::Job->new({ job => 0, %$spec });
|
||||
$CONFIG->{$1."_min_age"} = 0 if $job->action =~ m/^(arpnip|macsuck|discover)$/;
|
||||
|
||||
my $actiontext = (
|
||||
($job->device ? ('['.$job->device->ip.']') : '') .
|
||||
($job->action eq 'show' ? ('/'. ($job->subaction || 'interfaces')) : '')
|
||||
);
|
||||
|
||||
|
||||
# do job
|
||||
try {
|
||||
info sprintf '%s: %s started at %s',
|
||||
|
||||
Reference in New Issue
Block a user