bin/check-s3-bucket.rb in sensu-plugins-aws-2.1.0 vs bin/check-s3-bucket.rb in sensu-plugins-aws-2.1.1

- old
+ new

@@ -68,13 +68,11 @@ def run 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 s3 = Aws::S3::Client.new(aws_config.merge!(region: config[:aws_region])) begin s3.head_bucket(bucket: config[:bucket_name])