From 47031da65bacc9957f7002a7a4159dd259d0ea0b Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Mon, 21 Oct 2019 16:44:03 -0700 Subject: [PATCH] Return full webhook dict when serializing notif. --- awx/api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index eaa5ec7e4c..09066a4871 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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