bin/check-instance-health.rb in sensu-plugins-aws-10.1.1 vs bin/check-instance-health.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -93,10 +93,10 @@
if gather_status(item.instance_status)
messages << "#{id} has failed instance status checks"
end
end
end
- rescue => e
+ rescue StandardError => e
unknown "An error occurred processing AWS EC2 API: #{e.message}"
end
if messages.count > 0
critical("#{messages.count} instances #{messages.count > 1 ? 'have' : 'has'}: #{messages.join(',')}")