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:
parent
5d032c72fc
commit
958c21e86a
|
@ -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.
|
||||
|
|
|
@ -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*$/) {
|
||||
|
|
Loading…
Reference in New Issue