From 0f67f6d57c330eae7288fc391e4fdd525c9b6c2b Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Thu, 21 Aug 2014 13:12:11 -0400 Subject: [PATCH] Fix an issue where we were incorrectly trying to deserialize variables contained in the inventory activity stream change reported in: https://trello.com/c/5eIrrOvY --- awx/api/serializers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 8dddda7459..f44d33f9b1 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -1472,10 +1472,7 @@ class ActivityStreamSerializer(BaseSerializer): if obj is None: return {} try: - d_changes = json.loads(obj.changes) - if 'variables' in d_changes: - d_changes['variables'] = json.loads(d_changes['variables']) - return d_changes + return json.loads(obj.changes) except Exception, e: logger.warn("Error deserializing activity stream json changes") return {}