2013-02-28 Sancho Lerena <slerena@artica.es>

* lib/PandoraFMS/PluginServer.pm: Removed several "Use of
        uninitialized value in string" errors.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7747 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2013-02-28 14:21:15 +00:00
parent 1a952ae78a
commit 03cbebaef2
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-02-28 Sancho Lerena <slerena@artica.es>
* lib/PandoraFMS/PluginServer.pm: Removed several "Use of uninitialized i
value in string" errors.
2013-02-28 Ramon Novoa <rnovoa@artica.es>
* bin/pandora_server: Undid the previous commit since forking after

View File

@ -152,9 +152,17 @@ sub data_consumer ($$) {
# Build command to execute
my $command = $plugin->{'execute'};
if (!defined($plugin->{'parameters'})){
$plugin->{'parameters'} = "";
}
my $parameters = $plugin->{'parameters'};
if (!defined($module->{'macros'})){
$module->{'macros'} = "";
}
# Macros
eval {
if ($module->{'macros'} ne '') {