mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Return full webhook dict when serializing notif.
This commit is contained in:
parent
b024d91c66
commit
47031da65b
@ -4522,8 +4522,8 @@ class NotificationSerializer(BaseSerializer):
|
||||
# attempt to load json string
|
||||
try:
|
||||
potential_body = json.loads(obj.body)
|
||||
if isinstance(potential_body, dict) and 'body' in potential_body:
|
||||
return potential_body['body']
|
||||
if isinstance(potential_body, dict):
|
||||
return potential_body
|
||||
except json.JSONDecodeError:
|
||||
pass
|
||||
return obj.body
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user