mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
send activity stream changes as raw JSON, not a JSON-ified string
see: https://github.com/ansible/awx/issues/2005
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