mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 04:45:03 -02:30
minor nit for https://github.com/ansible/tower/pull/3060
This commit is contained in:
@@ -24,7 +24,7 @@ __all__ = ['CallbackQueueDispatcher']
|
|||||||
class AnsibleJSONEncoder(json.JSONEncoder):
|
class AnsibleJSONEncoder(json.JSONEncoder):
|
||||||
|
|
||||||
def default(self, o):
|
def default(self, o):
|
||||||
if getattr(o, 'yaml_tag') == '!vault':
|
if getattr(o, 'yaml_tag', None) == '!vault':
|
||||||
return o.data
|
return o.data
|
||||||
return super(AnsibleJSONEncoder, self).default(o)
|
return super(AnsibleJSONEncoder, self).default(o)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user