From 2e4005f50548e2f6999bf5b6fc11a76e355a9fdc Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sat, 9 May 2015 15:25:46 +0200 Subject: Reporting: Add dry_run and only_important flags Save the status of --dry-run and --only-important in the statistics, so that the reports could be filtered to only respect "normal" runs. --- src/lib/Bcfg2/Reporting/Storage/DjangoORM.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/Bcfg2/Reporting/Storage/DjangoORM.py') diff --git a/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py b/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py index efd9e594c..ac09766ff 100644 --- a/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py +++ b/src/lib/Bcfg2/Reporting/Storage/DjangoORM.py @@ -292,7 +292,10 @@ class DjangoORM(StorageBase): good_count=stats.get('good', default="0"), total_count=stats.get('total', default="0"), server=server, - profile=profile) + profile=profile, + dry_run=stats.get('dry_run', default=False), + only_important=stats.get('only_important', + default=False)) inter.save() self.logger.debug("Interaction for %s at %s with INSERTED in to db" % (client.id, timestamp)) -- cgit v1.2.3-1-g7c22