summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2011-04-11 13:46:01 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2011-04-11 13:46:01 -0500
commitdc1262d01800e2cb8560fc81d0cdb6827dd0432f (patch)
tree35505c5013d77ea452cb694df947318c195fa525 /src
parent5fb8de869e9a1a2dbf0cb07128ceb6c88bba2555 (diff)
downloadbcfg2-dc1262d01800e2cb8560fc81d0cdb6827dd0432f.tar.gz
bcfg2-dc1262d01800e2cb8560fc81d0cdb6827dd0432f.tar.bz2
bcfg2-dc1262d01800e2cb8560fc81d0cdb6827dd0432f.zip
Reports: delete orphaned Reasons after the purge command is run
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Admin/Reports.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Reports.py b/src/lib/Server/Admin/Reports.py
index 39c9eb71e..ee3a4473f 100644
--- a/src/lib/Server/Admin/Reports.py
+++ b/src/lib/Server/Admin/Reports.py
@@ -334,6 +334,8 @@ class Reports(Bcfg2.Server.Admin.Mode):
# bulk operations bypass the Interaction.delete method
self.log.debug("Pruning orphan Performance objects")
Performance.prune_orphans()
+ self.log.debug("Pruning orphan Reason objects")
+ Reason.prune_orphans()
if client and not filtered:
'''Delete the client, ping data is automatic'''