mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Merge pull request #2618 from ryanpetrello/json-activity-stream-changes
send activity stream changes as raw JSON, not a JSON-ified string Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -31,6 +31,10 @@ class LogstashFormatter(LogstashFormatterVersion1):
|
|||||||
to the logging receiver
|
to the logging receiver
|
||||||
'''
|
'''
|
||||||
if kind == 'activity_stream':
|
if kind == 'activity_stream':
|
||||||
|
try:
|
||||||
|
raw_data['changes'] = json.loads(raw_data.get('changes', '{}'))
|
||||||
|
except Exception:
|
||||||
|
pass # best effort here, if it's not valid JSON, then meh
|
||||||
return raw_data
|
return raw_data
|
||||||
elif kind == 'system_tracking':
|
elif kind == 'system_tracking':
|
||||||
data = copy(raw_data['ansible_facts'])
|
data = copy(raw_data['ansible_facts'])
|
||||||
|
|||||||
Reference in New Issue
Block a user