2013-11-13 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/DataServer.pm: Fixed a bug when a parent was defined but empty in the XML and an agent with an empty address existed in the database. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9071 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
83c47c4833
commit
d71a39c470
|
@ -1,3 +1,9 @@
|
|||
2013-11-13 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/DataServer.pm: Fixed a bug when a parent was defined but
|
||||
empty in the XML and an agent with an empty address existed in the
|
||||
database.
|
||||
|
||||
2013-11-11 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* lib/PandoraFMS/Config.pm,
|
||||
|
|
|
@ -228,7 +228,7 @@ sub process_xml_data ($$$$$) {
|
|||
# Parent Agent Name
|
||||
my $parent_id = 0; # Default value for unknown parent
|
||||
my $parent_agent_name = $data->{'parent_agent_name'};
|
||||
if (defined ($parent_agent_name)) {
|
||||
if (defined ($parent_agent_name) && $parent_agent_name ne '') {
|
||||
$parent_id = get_agent_id ($dbh, $parent_agent_name);
|
||||
if ($parent_id < 1) { # Unknown parent
|
||||
$parent_id = 0;
|
||||
|
|
Loading…
Reference in New Issue