bin/check-instance-events.rb in sensu-plugins-aws-2.1.0 vs bin/check-instance-events.rb in sensu-plugins-aws-2.1.1

- old
+ new

@@ -70,13 +70,11 @@ def run event_instances = [] aws_config = {} if config[:use_iam_role].nil? - aws_config.merge!( - access_key_id: config[:aws_access_key], - secret_access_key: config[:aws_secret_access_key] - ) + aws_config[:access_key_id] = config[:aws_access_key] + aws_config[:secret_access_key] = config[:aws_secret_access_key] end ec2 = AWS::EC2::Client.new(aws_config.merge!(region: config[:aws_region])) begin ec2.describe_instance_status[:instance_status_set].each do |i|