bin/handler-ses.rb in sensu-plugins-aws-11.4.2 vs bin/handler-ses.rb in sensu-plugins-aws-11.5.0

- old
+ new

@@ -39,10 +39,10 @@ settings['ses']['mail_from'] || '' end def build_mail_to_list json_config = config[:json_config] || 'ses' - mail_to = @event['client']['mail_to'] || settings[json_config]['mail_to'] + mail_to = @event['check']['mail_to'] || @event['client']['mail_to'] || settings[json_config]['mail_to'] if settings[json_config].key?('subscriptions') @event['check']['subscribers'].each do |sub| if settings[json_config]['subscriptions'].key?(sub) mail_to << ", #{settings[json_config]['subscriptions'][sub]['mail_to']}" end