mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -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:
parent
a3c9dc7deb
commit
0f67f6d57c
@ -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 {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user