#1095 fix with multiple netdisco-do -d, snmpfastdiscover runs multiple times

This commit is contained in:
Oliver Gorwits
2023-08-20 21:39:23 +01:00
parent d89252133d
commit 82e084a87f

View File

@@ -43,6 +43,8 @@ sub load_workers {
# which has higher run priority than "_base_" and any other. # which has higher run priority than "_base_" and any other.
foreach my $phase (qw/check early main user store late/) { foreach my $phase (qw/check early main user store late/) {
next if exists $workers->{$phase}->{'__internal__'};
next unless exists vars->{'workers'}->{'internal'} next unless exists vars->{'workers'}->{'internal'}
and exists vars->{'workers'}->{'internal'}->{$phase}; and exists vars->{'workers'}->{'internal'}->{$phase};
my $internal = vars->{'workers'}->{'internal'}; my $internal = vars->{'workers'}->{'internal'};