We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0afb0ea commit 88ba3f4Copy full SHA for 88ba3f4
ansible_runner/display_callback/events.py
@@ -42,7 +42,10 @@ class AnsibleJSONEncoderLocal(json.JSONEncoder):
42
43
def default(self, o):
44
if getattr(o, 'yaml_tag', None) == '!vault':
45
- return o.data
+ encrypted_form = o._ciphertext
46
+ if isinstance(encrypted_form, bytes):
47
+ encrypted_form = encrypted_form.decode('utf-8')
48
+ return {'__ansible_vault': encrypted_form}
49
elif isinstance(o, (datetime.date, datetime.datetime)):
50
return o.isoformat()
51
return super(AnsibleJSONEncoderLocal, self).default(o)
0 commit comments