2010-12-27 Sancho Lerena <slerena@artica.es>

* util/pandora_sync_db.pl: Fixed a undefined condition.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3710 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2010-12-27 15:51:54 +00:00
parent d8a39fe57d
commit 8fc610c713
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-12-27 Sancho Lerena <slerena@artica.es>
* util/pandora_sync_db.pl: Fixed a undefined condition.
2010-12-22 Sergio Martin <sergio.martin@artica.es>
* util/pandora_manage.pl: Fixed duplicate module creation

View File

@ -73,7 +73,12 @@ print "\n[*] $agents_deleted agents deleted on destination.\n" unless $agents_de
print "\n[*] Preparing modules correlation.\n";
my $id_agentmodule_comparation = enterprise_hook('sync_compare_id_agent_modules', [$dbh_source, $dbh_dest, $id_agent_comparation, \$errors_modules]);
my @id_agentmodule_comparation = @{$id_agentmodule_comparation};
my @id_agentmodule_comparation;
if ($id_agentmodule_comparation ne ""){
@id_agentmodule_comparation = @{$id_agentmodule_comparation};
}
print "\n[*] Checking destination modules missed on source.\n";
my $modules_deleted = enterprise_hook('sync_delete_dst_missed_agent_modules', [$dbh_source, $dbh_dest, $id_agent_comparation, \$errors_modules]);