This commit is contained in:
Ryan Petrello 2018-10-12 16:17:14 -04:00
parent d4e3127fb4
commit 867ff5da71
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

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)