bin/metrics-billing.rb in sensu-plugins-aws-10.1.1 vs bin/metrics-billing.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -87,11 +87,10 @@
statistics: ['Maximum'],
unit: 'None'
)
output "#{config[:scheme]}.total.#{service_name}", r[:datapoints][0].maximum, r[:datapoints][0][:timestamp].to_i unless r[:datapoints][0].nil?
end
-
- rescue => e
+ rescue StandardError => e
critical "Error: exception: #{e}"
end
ok
end
end