mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03: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:
parent
856dc3645e
commit
1523feee91
@ -31,6 +31,10 @@ class LogstashFormatter(LogstashFormatterVersion1):
|
||||
to the logging receiver
|
||||
'''
|
||||
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
|
||||
elif kind == 'system_tracking':
|
||||
data = copy(raw_data['ansible_facts'])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user