Fix groups linked to non-existent policies

This commit is contained in:
fbsanchez 2022-03-21 14:04:17 +01:00
parent c736fbe726
commit 71c73bc374
1 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,9 @@ sub pandora_purgedb ($$) {
log_message ('PURGE', 'trap_purge is set to 0. Old SNMP traps will not be deleted.');
}
# Cleanup policy groups pointing to non-existing policies.
enterprise_hook('pandora_policy_group_cleanup', [$dbh]);
# Delete policy queue data
enterprise_hook("pandora_purge_policy_queue", [$dbh, $conf]);