This commit is contained in:
Ryan Petrello
2018-10-12 16:17:14 -04:00
parent d4e3127fb4
commit 867ff5da71

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)