mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 19:07:39 -02: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:
|
if obj is None:
|
||||||
return {}
|
return {}
|
||||||
try:
|
try:
|
||||||
d_changes = json.loads(obj.changes)
|
return json.loads(obj.changes)
|
||||||
if 'variables' in d_changes:
|
|
||||||
d_changes['variables'] = json.loads(d_changes['variables'])
|
|
||||||
return d_changes
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.warn("Error deserializing activity stream json changes")
|
logger.warn("Error deserializing activity stream json changes")
|
||||||
return {}
|
return {}
|
||||||
|
|||||||
Reference in New Issue
Block a user