From a604ecffb8b67dc8196fb4b49200a25afd19a983 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 6 Aug 2020 22:52:34 -0400 Subject: [PATCH] Adjust query_info to set the collection time based on what's passed. --- awx/main/analytics/collectors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/analytics/collectors.py b/awx/main/analytics/collectors.py index 9b15ff0627..e1dc468d51 100644 --- a/awx/main/analytics/collectors.py +++ b/awx/main/analytics/collectors.py @@ -220,10 +220,10 @@ def job_instance_counts(since, **kwargs): @register('query_info', '1.0', description=_('Metadata about the analytics collected')) -def query_info(since, collection_type, **kwargs): +def query_info(since, collection_type, until, **kwargs): query_info = {} query_info['last_run'] = str(since) - query_info['current_time'] = str(now()) + query_info['current_time'] = str(until) query_info['collection_type'] = collection_type return query_info