tools/riemann-aws/lib/riemann/tools/aws/sqs_status.rb in riemann-tools-1.10.0 vs tools/riemann-aws/lib/riemann/tools/aws/sqs_status.rb in riemann-tools-1.11.0

- old
+ new

@@ -12,9 +12,11 @@ opt :access_key, 'AWS access key', type: String opt :secret_key, 'Secret access key', type: String opt :region, 'AWS region', type: String, default: 'us-east-1' opt :queue, 'SQS Queue name', type: String def initialize + super + creds = if opts.key?('access_key') && opts.key?('secret_key') { aws_access_key_id: opts[:access_key], aws_secret_access_key: opts[:secret_key], }