Open Gillingham opened 4 years ago
The annotation is meant to directly override the command line argument toEmail which accepts a comma separated list of addresses.
That doesnt seem to be a direct passing the CLI in the case of array handling though since it will unpack an escaped double quoted array.
I'm using ansible and the sensu-go-ansible playbooks to configure checks. As a result if I pass an array to the toEmail annotation it ends up being configured as
['foo@email.com', 'bar@email.com']
which sensu-email-handler accepts, and then doesnt actually send email.A quick test of variations of quoting below:
No quotes in the array
Results: no email
Single quote in the array
Results: no email
Escaped double quotes
Results: email actually sent
Any advice here? I'm not entirely sure if this is a bug here, or something to be taken up with sensu-go-ansible