bin/handler-ses.rb in sensu-plugins-aws-2.1.0 vs bin/handler-ses.rb in sensu-plugins-aws-2.1.1
- old
+ new
@@ -80,14 +80,14 @@
Command: #{@event['check']['command']}
Status: #{@event['check']['status']}
Occurrences: #{@event['occurrences']}
BODY
- if @event['check']['notification'].nil?
- subject = "#{action_to_string} - #{event_name}: #{status_to_string}"
- else
- subject = "#{action_to_string} - #{event_name}: #{@event['check']['notification']}"
- end
+ subject = if @event['check']['notification'].nil?
+ "#{action_to_string} - #{event_name}: #{status_to_string}"
+ else
+ "#{action_to_string} - #{event_name}: #{@event['check']['notification']}"
+ end
if use_ami_role
AWS.config(region: region)
else
AWS.config(access_key_id: aws_access_key,