jhaals / ansible-vault

ansible lookup plugin for secrets stored in Vault(by HashiCorp)
BSD 3-Clause "New" or "Revised" License
347 stars 65 forks source link

Handle non-JSON responses #54

Closed andor44 closed 7 years ago

andor44 commented 7 years ago

Fix for #53

andor44 commented 7 years ago

Note that this will still fail responses that aren't UTF8-encodable strings, ie. binary data like that returned from read CA will still fail. It will work with the /pem variant though, which is still a non-JSON response, but it is valid UTF-8. I'm not sure if Ansible supports returning arbitrary binary blobs.

jhaals commented 7 years ago

Thanks for the fix @andor44!