lib/sensu-plugins-aws/common.rb in sensu-plugins-aws-2.1.0 vs lib/sensu-plugins-aws/common.rb in sensu-plugins-aws-2.1.1
- old
+ new
@@ -21,12 +21,10 @@
super()
aws_config
end
def aws_config
- Aws.config.update(
- credentials: Aws::Credentials.new(config[:aws_access_key], config[:aws_secret_access_key])
- ) if config[:aws_access_key] && config[:aws_secret_access_key]
+ Aws.config[:credentials] = Aws::Credentials.new(config[:aws_access_key], config[:aws_secret_access_key]) if config[:aws_access_key] && config[:aws_secret_access_key]
Aws.config.update(
region: config[:aws_region]
)
end