bin/check-es-heap.rb in sensu-plugins-elasticsearch-1.2.0 vs bin/check-es-heap.rb in sensu-plugins-elasticsearch-1.3.0
- old
+ new
@@ -96,10 +96,10 @@
end
def acquire_es_resource(resource)
headers = {}
if config[:user] && config[:password]
- auth = 'Basic ' + Base64.encode64("#{config[:user]}:#{config[:password]}").chomp
+ auth = 'Basic ' + Base64.strict_encode64("#{config[:user]}:#{config[:password]}").chomp
headers = { 'Authorization' => auth }
end
protocol = if config[:https]
'https'