1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Merge pull request #3062 from ryanpetrello/fix-3043

minor nit for https://github.com/ansible/tower/pull/3060
This commit is contained in:
Ryan Petrello 2018-10-12 16:56:23 -04:00 committed by GitHub
commit 6073e8e3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ __all__ = ['CallbackQueueDispatcher']
class AnsibleJSONEncoder(json.JSONEncoder):
def default(self, o):
if getattr(o, 'yaml_tag') == '!vault':
if getattr(o, 'yaml_tag', None) == '!vault':
return o.data
return super(AnsibleJSONEncoder, self).default(o)