Closed Gillingham closed 4 years ago
If I do nothing but roll back to sensu-email-handler 0.4.0 the above commands work fine.
In looking at this, I am certain it has to do with the recent change of the config.ToEmail from a string to a slice of strings. Something in the Sensu SDK code is choking on that when attempting to do the annotation override.
Thoughts @echlebek ?
It does seem to be a possible culprit. I'll have to look at what the SDK is doing in this circumstance. My feeling is that since the command-line argument still works the same, that the annotations should as well.
Since it's been awhile, is there a work-around for this? Sending to multiple emails is something we really need so would like to be able to upgrade even if that means we have to like wrap any single emailed notifications in an array or something to get 0.5.1 working.
sensu-backend 5.19.1 sensu-email-handler 0.5.1
Handler configured with command as
"sensu-email-handler -f foo@bar.com -s smtphost -P 25 -a none"
If I submit a test event to it with
I get no email, and the sensu-backend spits out: