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