lib/sensu-plugins-aws/common.rb in sensu-plugins-aws-3.1.0 vs lib/sensu-plugins-aws/common.rb in sensu-plugins-aws-3.2.0
- old
+ new
@@ -25,8 +25,8 @@
def aws_config
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]
- )
+ ) if config.key?(:aws_region)
end
end