From 19307d863e515e4bf424fceb010166c8b2955878 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Wed, 1 Jul 2015 13:30:50 +0200 Subject: [PATCH] Now, xml_stress with get_and_send_agent_conf enabled puts the test modules in the remote configuration --- pandora_server/util/pandora_xml_stress.pl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) mode change 100755 => 100644 pandora_server/util/pandora_xml_stress.pl diff --git a/pandora_server/util/pandora_xml_stress.pl b/pandora_server/util/pandora_xml_stress.pl old mode 100755 new mode 100644 index 4273730d99..e85c7371f9 --- a/pandora_server/util/pandora_xml_stress.pl +++ b/pandora_server/util/pandora_xml_stress.pl @@ -821,17 +821,17 @@ sub get_and_send_agent_conf(\@\%\@\%) { # Create the block of modules. foreach my $module (@{$modules}) { + + $temp = $temp . " -module_begin -module_name " . $module->{'module_name'} . " -module_type " . $module->{'module_type'} . " -module_exec " . $module->{'module_exec'} . " -module_min " . $module->{'module_min'} . " -module_max " . $module->{'module_max'} . " -module_end -"; +module_begin"; + while ( my ($key, $value) = each %$module ) { + $temp = $temp . "\n$key $value"; + } + $temp = $temp . " +module_end\n"; } - + print ($temp); my $default_conf = "# General Parameters # ==================