sensu-plugins / sensu-plugins-mailer

This plugin is an email handler for Sensu.
http://sensu-plugins.io
MIT License
17 stars 37 forks source link

improve error handling for `contact` vs `contacts` in event data: #61

Closed majormoses closed 6 years ago

majormoses commented 6 years ago

when an event has a payload with contact and it is an array we should bail and present the user with a useful error message.

58

Signed-off-by: Ben Abrams me@benabrams.it

Pull Request Checklist

General

Purpose

Previously we attempted to catch when the user had settings of contact with an array, adding the same checking on event data as it can be specified with a check.

Known Compatibility Issues

majormoses commented 6 years ago

released: https://rubygems.org/gems/sensu-plugins-mailer/versions/2.0.1