bin/metrics-sqs.rb in sensu-plugins-aws-1.2.0 vs bin/metrics-sqs.rb in sensu-plugins-aws-2.0.0
- old
+ new
@@ -67,10 +67,10 @@
}
end
def run
if config[:scheme] == ''
- scheme = "aws.sqs.queue.#{config[:queue].gsub('-', '_')}.message_count"
+ scheme = "aws.sqs.queue.#{config[:queue].tr('-', '_')}.message_count"
else
scheme = config[:scheme]
end
begin