Merge branch 'ent-8407-parametro-erroneo-days_purge_ncm' into 'develop'

errata fix

See merge request artica/pandorafms!4597
This commit is contained in:
Daniel Rodriguez 2022-01-12 12:18:55 +00:00
commit 172b34ee12
1 changed files with 4 additions and 4 deletions

View File

@ -391,11 +391,11 @@ sub pandora_purgedb ($$) {
# Delete old log data
log_message ('PURGE', "Deleting old network configuration manager data.");
if (defined($conf->{'days_purge_ncm'}) && $conf->{'days_purge_ncm'} > 0) {
log_message ('PURGE', 'Deleting NCM data older than ' . $conf->{'days_purge_ncm'} . ' days.');
enterprise_hook ('pandora_purge_ncm', [$dbh, \&log_message, $conf->{'days_purge_ncm'}, $conf->{'_history_db_step'}, $conf->{'_history_db_delay'}]);
if (defined($conf->{'_days_purge'}) && $conf->{'_days_purge'} > 0) {
log_message ('PURGE', 'Deleting NCM data older than ' . $conf->{'_days_purge'} . ' days.');
enterprise_hook ('pandora_purge_ncm', [$dbh, \&log_message, $conf->{'_days_purge'}, $conf->{'_history_db_step'}, $conf->{'_history_db_delay'}]);
} else {
log_message ('PURGE', 'days_purge_ncm is set to 0. Old network configuration manager data will not be deleted.');
log_message ('PURGE', '_days_purge is set to 0. Old network configuration manager data will not be deleted.');
}
# Delete old special days