bin/check-rds-pending.rb in sensu-plugins-aws-10.1.1 vs bin/check-rds-pending.rb in sensu-plugins-aws-10.1.2

- old
+ new

@@ -50,10 +50,10 @@ # Check if there is any pending maintenance required pending_record = rds.describe_pending_maintenance_actions(filters: [{ name: 'db-instance-id', values: clusters }]) pending_record[:pending_maintenance_actions].each do |response| maint_clusters.push(response[:pending_maintenance_action_details]) end - rescue => e + rescue StandardError => e unknown "An error occurred processing AWS RDS API: #{e.message}" end if maint_clusters.empty? ok