mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 18:51:06 -03:30
Merge pull request #3911 from rooftopcellist/rm_extra_error
rm extra collection error line Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -80,7 +80,7 @@ def gather(dest=None, module=None):
|
|||||||
|
|
||||||
if not settings.INSIGHTS_TRACKING_STATE:
|
if not settings.INSIGHTS_TRACKING_STATE:
|
||||||
logger.error("Insights analytics not enabled")
|
logger.error("Insights analytics not enabled")
|
||||||
return "Error: Insights analytics not enabled"
|
return
|
||||||
|
|
||||||
if module is None:
|
if module is None:
|
||||||
from awx.main.analytics import collectors
|
from awx.main.analytics import collectors
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ class Command(BaseCommand):
|
|||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
tgz = gather()
|
tgz = gather()
|
||||||
self.init_logging()
|
self.init_logging()
|
||||||
self.logger.debug(tgz)
|
if not tgz:
|
||||||
|
self.logger.debug(tgz)
|
||||||
if options.get('ship'):
|
if options.get('ship'):
|
||||||
ship(tgz)
|
ship(tgz)
|
||||||
|
|||||||
Reference in New Issue
Block a user