rm extra collection error line

This commit is contained in:
Christian Adams
2019-05-16 14:48:41 -04:00
parent faa353521a
commit 0c4925afe8
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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)