mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-14 07:48:39 -05:00
Refactor analytics collectors.
- Only have one registration class - Add description fields - Add automation collector information to /api/v2/config
This commit is contained in:
+2
-1
@@ -373,8 +373,9 @@ def gather_analytics():
|
||||
if acquired is False:
|
||||
logger.debug('Not gathering analytics, another task holds lock')
|
||||
return
|
||||
subset = list(all_collectors().keys())
|
||||
try:
|
||||
tgz = analytics.gather()
|
||||
tgz = analytics.gather(subset=subset)
|
||||
if not tgz:
|
||||
return
|
||||
logger.info('gathered analytics: {}'.format(tgz))
|
||||
|
||||
Reference in New Issue
Block a user