minor fix parent link

Former-commit-id: a2330dd0159ad58c454a06b7efe16699f7cee84a
This commit is contained in:
fbsanchez 2019-04-04 18:20:26 +02:00
parent 143c501a6e
commit e76a5af441
1 changed files with 3 additions and 0 deletions

View File

@ -450,6 +450,9 @@ sub PandoraFMS::Recon::Base::create_agents($$) {
$parent_id = PandoraFMS::Core::locate_agent(
$pa_config, $dbh, $agent->{'parent_agent_name'}
);
if ($parent_id) {
$parent_id = $parent_id->{'id_agente'};
}
}
my $agent_id;