mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
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
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user