bin/check-cloudwatch-metric.rb in sensu-plugins-aws-2.1.0 vs bin/check-cloudwatch-metric.rb in sensu-plugins-aws-2.1.1
- old
+ new
@@ -97,11 +97,11 @@
include CloudwatchCommon
def self.parse_dimensions(dimension_string)
dimension_string.split(',')
- .collect { |d| d.split '=' }
- .collect { |a| { name: a[0], value: a[1] } }
+ .collect { |d| d.split '=' }
+ .collect { |a| { name: a[0], value: a[1] } }
end
def dimension_string
config[:dimensions].map { |d| "#{d[:name]}=#{d[:value]}" }.join('&')
end