Merge branch 'ent-4959-errores-con-chequeos-fallidos-en-discovery-oracle-nokia-telenor' into 'develop'

Control if module is hashref or not

See merge request artica/pandorafms!3069
This commit is contained in:
Daniel Rodriguez 2020-02-25 10:51:45 +01:00
commit f61a4403ed
1 changed files with 1 additions and 0 deletions

View File

@ -598,6 +598,7 @@ sub PandoraFMS::Recon::Base::create_agents($$) {
# Add modules.
if (ref($modules) eq "ARRAY") {
foreach my $module (@{$modules}) {
next unless ref($module) eq 'HASH';
# Translate data structure to simulate XML parser return.
my %data_translated = map { $_ => [ $module->{$_} ] } keys %{$module};