bin/metrics-etcd.rb in sensu-plugins-etcd-1.0.0 vs bin/metrics-etcd.rb in sensu-plugins-etcd-1.1.0
- old
+ new
@@ -94,10 +94,10 @@
port: config[:etcd_port],
use_ssl: config[:ssl],
verify_mode: (config[:insecure] ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER),
ca_file: config[:ca],
ssl_cert: (OpenSSL::X509::Certificate.new(File.read(config[:cert])) unless config[:cert].nil?),
- ssl_key: (OpenSSL::PKey::RSA.new(File.read(config[:key]), config[:passphrase]) unless config[:key].nil?)
+ ssl_key: (OpenSSL::PKey.read(File.read(config[:key]), config[:passphrase]) unless config[:key].nil?)
)
else
client = Etcd.client(host: config[:etcd_host], port: config[:etcd_port])
end
client.stats(:self).each do |k, v|