mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Fix NoneType path error with analytics collection
This commit is contained in:
@@ -330,10 +330,12 @@ def send_notifications(notification_list, job_id=None):
|
|||||||
|
|
||||||
@task()
|
@task()
|
||||||
def gather_analytics():
|
def gather_analytics():
|
||||||
if settings.PENDO_TRACKING_STATE == 'off':
|
if not settings.INSIGHTS_TRACKING_STATE:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
tgz = analytics.gather()
|
tgz = analytics.gather()
|
||||||
|
if not tgz:
|
||||||
|
return
|
||||||
logger.debug('gathered analytics: {}'.format(tgz))
|
logger.debug('gathered analytics: {}'.format(tgz))
|
||||||
analytics.ship(tgz)
|
analytics.ship(tgz)
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user