mirror of
https://github.com/ansible/awx.git
synced 2026-09-04 19:08:30 -02:30
Adds versions to analytics collectors and manifest file.
- adds 'query_info.json' to contain collection metadata - adds 'manifest.json' to contain collection file version info
This commit is contained in:
committed by
Christian Adams
parent
9baa9eee96
commit
78c0d531bc
@@ -9,17 +9,17 @@ from django.conf import settings
|
||||
from awx.main.analytics import gather, register
|
||||
|
||||
|
||||
@register('example')
|
||||
@register('example', '1.0')
|
||||
def example(since):
|
||||
return {'awx': 123}
|
||||
|
||||
|
||||
@register('bad_json')
|
||||
@register('bad_json', '1.0')
|
||||
def bad_json(since):
|
||||
return set()
|
||||
|
||||
|
||||
@register('throws_error')
|
||||
@register('throws_error', '1.0')
|
||||
def throws_error(since):
|
||||
raise ValueError()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user