From 82e084a87f09ac48f41d6fde869a64c5fb7a20d2 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 20 Aug 2023 21:39:23 +0100 Subject: [PATCH] #1095 fix with multiple netdisco-do -d, snmpfastdiscover runs multiple times --- lib/App/Netdisco/Worker/Loader.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/App/Netdisco/Worker/Loader.pm b/lib/App/Netdisco/Worker/Loader.pm index 445b1419..c9cf8208 100644 --- a/lib/App/Netdisco/Worker/Loader.pm +++ b/lib/App/Netdisco/Worker/Loader.pm @@ -43,6 +43,8 @@ sub load_workers { # which has higher run priority than "_base_" and any other. foreach my $phase (qw/check early main user store late/) { + next if exists $workers->{$phase}->{'__internal__'}; + next unless exists vars->{'workers'}->{'internal'} and exists vars->{'workers'}->{'internal'}->{$phase}; my $internal = vars->{'workers'}->{'internal'};