2014-08-12 Ramon Novoa <rnovoa@artica.es>

* pandora_agent: Trim leading and trailing whitespaces from module names
	  (like policies and windows agents do).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10406 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2014-08-12 11:24:02 +00:00
parent 5d032c72fc
commit 958c21e86a
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2014-08-12 Ramon Novoa <rnovoa@artica.es>
* pandora_agent: Trim leading and trailing whitespaces from module names
(like policies and windows agents do).
2014-08-07 Ramon Novoa <rnovoa@artica.es>
* pandora_agent_daemon: Fixes the ps call on HP-UX.

View File

@ -343,6 +343,8 @@ sub parse_conf_modules($) {
init_module ($module);
} elsif ($line =~ /^\s*module_name\s+(.+)$/) {
$module->{'name'} = $1;
$module->{'name'} =~ s/\s+$//g;
$module->{'name'} =~ s/^\s+//g;
} elsif ($line =~ /^\s*module_description\s+(.+)$/) {
$module->{'description'} = $1;
} elsif ($line =~ /^\s*module_type\s+(\S+)\s*$/) {