Avoid candidates without label (indirect related)

This commit is contained in:
fbsanchez 2020-04-16 12:54:47 +02:00
parent f9c3d480ca
commit f84760e448
1 changed files with 2 additions and 2 deletions

View File

@ -1311,10 +1311,10 @@ sub PandoraFMS::Recon::Base::report_scanned_agents($;$) {
my ($progress, $step) = (90, 10.0 / scalar(@hosts)); # From 90% to 100%.
foreach my $addr (keys %{$self->{'agents_found'}}) {
next if is_empty($addr);
my $label = $self->{'agents_found'}->{$addr}{'agent'}{'nombre'};
next if is_empty($label);
$self->call('update_progress', $progress);
$progress += $step;
# Store temporally. Wait user approval.