From 867ff5da7196a4d9554ac7b83b5c1716f84fa2a0 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Fri, 12 Oct 2018 16:17:14 -0400 Subject: [PATCH] minor nit for https://github.com/ansible/tower/pull/3060 --- awx/main/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/queue.py b/awx/main/queue.py index 57a784321e..d8306c05ba 100644 --- a/awx/main/queue.py +++ b/awx/main/queue.py @@ -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)