ansible-datadog-callback
ansible-datadog-callback copied to clipboard
Cast api_key from host_vars to str to support encrypted values
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