bin/check-instance-reachability.rb in sensu-plugins-aws-10.1.1 vs bin/check-instance-reachability.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -87,10 +87,10 @@
if $CHILD_STATUS.to_i > 0
errors << "Could not reach #{i[:instance_id]}"
end
end
end
- rescue => e
+ rescue StandardError => e
puts "Error: exception: #{e}"
critical
end
if errors.empty?
ok "Instances checked: #{instance_ids.join(',')}"