From 13802fcf2bfa137aa642ee9b5eb2d187b420b269 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 10 Sep 2020 21:19:07 -0400 Subject: [PATCH] Don't return error messages for license errors Just log the exception and return None. --- awx/main/analytics/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/analytics/core.py b/awx/main/analytics/core.py index 7179d89969..fe48fb30bf 100644 --- a/awx/main/analytics/core.py +++ b/awx/main/analytics/core.py @@ -105,11 +105,11 @@ def gather(dest=None, module=None, subset = None, since = None, until = now(), c if _valid_license() is False: logger.exception("Invalid License provided, or No License Provided") - return "Error: Invalid License provided, or No License Provided" + return None if collection_type != 'dry-run' and not settings.INSIGHTS_TRACKING_STATE: logger.error("Automation Analytics not enabled. Use --dry-run to gather locally without sending.") - return + return None collector_list = [] if module: