From 0c4925afe84421e4c35e3d60a8cbb2f67b073313 Mon Sep 17 00:00:00 2001 From: Christian Adams Date: Thu, 16 May 2019 14:48:41 -0400 Subject: [PATCH] rm extra collection error line --- awx/main/analytics/core.py | 2 +- awx/main/management/commands/gather_analytics.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/main/analytics/core.py b/awx/main/analytics/core.py index 4e97261c90..9e3d333cae 100644 --- a/awx/main/analytics/core.py +++ b/awx/main/analytics/core.py @@ -80,7 +80,7 @@ def gather(dest=None, module=None): if not settings.INSIGHTS_TRACKING_STATE: logger.error("Insights analytics not enabled") - return "Error: Insights analytics not enabled" + return if module is None: from awx.main.analytics import collectors diff --git a/awx/main/management/commands/gather_analytics.py b/awx/main/management/commands/gather_analytics.py index efec07653b..ad0eddeb50 100644 --- a/awx/main/management/commands/gather_analytics.py +++ b/awx/main/management/commands/gather_analytics.py @@ -25,6 +25,7 @@ class Command(BaseCommand): def handle(self, *args, **options): tgz = gather() self.init_logging() - self.logger.debug(tgz) + if not tgz: + self.logger.debug(tgz) if options.get('ship'): ship(tgz)