bin/check-cloudwatch-alarm.rb in sensu-plugins-aws-10.1.1 vs bin/check-cloudwatch-alarm.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -93,11 +93,10 @@
elsif config[:warning].upcase.split(',').include? data.metric_alarms[0].state_value
warning message
end
ok message
-
- rescue => e
+ rescue StandardError => e
puts "Error: exception: #{e}"
critical
end
end