2014-05-28 Sergio Martin <sergio.martin@artica.es>
* lib/PandoraFMS/ReconServer.pm: Fixed wrong order in recon script parameters in the conversion from json format git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10029 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
af5d571ff4
commit
f68815faf6
|
@ -1,3 +1,8 @@
|
|||
2014-05-28 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* lib/PandoraFMS/ReconServer.pm: Fixed wrong order in
|
||||
recon script parameters in the conversion from json format
|
||||
|
||||
2014-05-28 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* bin/pandora_server,
|
||||
|
|
|
@ -495,7 +495,16 @@ sub exec_recon_script ($$$) {
|
|||
|
||||
# Add module macros as parameter
|
||||
if(ref($decoded_macros) eq "HASH") {
|
||||
# Convert the hash to a sorted array
|
||||
my @sorted_macros;
|
||||
while (my ($i, $m) = each (%{$decoded_macros})) {
|
||||
$sorted_macros[$i] = $m;
|
||||
}
|
||||
|
||||
# Remove the 0 position
|
||||
shift @sorted_macros;
|
||||
|
||||
foreach my $m (@sorted_macros) {
|
||||
$macros_parameters = $macros_parameters . ' "' . $m->{"value"} . '"';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue