Avoid empty references

This commit is contained in:
fbsanchez 2020-04-16 12:50:44 +02:00
parent bcb969c3af
commit f9c3d480ca
1 changed files with 2 additions and 0 deletions

View File

@ -1311,6 +1311,8 @@ 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'};
$self->call('update_progress', $progress);