From 670396fce0d1c1a9ccd8c75d02b7d0dcce71fcff Mon Sep 17 00:00:00 2001 From: Andrew Melton Date: Thu, 6 Mar 2014 11:48:12 -0500 Subject: [PATCH] Remove custom name for ums query based report --- reports/nova_usage_audit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reports/nova_usage_audit.py b/reports/nova_usage_audit.py index ae2bd2b..fc4dc9a 100644 --- a/reports/nova_usage_audit.py +++ b/reports/nova_usage_audit.py @@ -227,14 +227,14 @@ def audit_for_period(beginning, ending, ums=False, ums_offset=0): return summary, details -def store_results(start, end, summary, details, ums=False): +def store_results(start, end, summary, details): values = { 'json': make_json_report(summary, details), 'created': dt.dt_to_decimal(datetime.datetime.utcnow()), 'period_start': start, 'period_end': end, 'version': 6, - 'name': 'nova usage audit' if not ums else 'nova usage audit ums' + 'name': 'nova usage audit' } report = models.JsonReport(**values) @@ -313,4 +313,4 @@ if __name__ == '__main__': if not args.store: print make_json_report(summary, details) else: - store_results(start, end, summary, details, ums=args.ums) + store_results(start, end, summary, details)