Fix disabled agents filling

This commit is contained in:
José González 2022-09-05 13:53:08 +02:00
parent 855686772f
commit 4f0ba4cb64
1 changed files with 3 additions and 1 deletions

View File

@ -1879,7 +1879,9 @@ sub PandoraFMS::Recon::Base::create_agents($$) {
$force_processing = 1;
} else {
$agent_id = $current_agent->{'id_agente'};
if ($current_agent->{'disabled'} eq '0') {
$agent_id = $current_agent->{'id_agente'};
}
}
if (!defined($agent_id)) {