ansible-datadog-callback icon indicating copy to clipboard operation
ansible-datadog-callback copied to clipboard

Cast api_key from host_vars to str to support encrypted values

Open Chekov2k opened this issue 4 years ago • 0 comments

For an encrypted host_var, the class of the object changes from ansible.parsing.yaml.objects.AnsibleUnicode to ansible.parsing.yaml.objects.AnsibleVaultEncryptedUnicode As a result, the api_key is not injected correctly. Casting to str solves the problem

Chekov2k avatar Nov 02 '20 09:11 Chekov2k