bin/check-jenkins-health.rb in sensu-plugins-jenkins-1.5.0 vs bin/check-jenkins-health.rb in sensu-plugins-jenkins-1.6.0
- old
+ new
@@ -79,11 +79,11 @@
https ||= config[:https] ? 'https' : 'http'
testurl = "#{https}://#{config[:server]}:#{config[:port]}#{config[:uri]}"
r = if config[:https] && config[:insecure]
RestClient::Resource.new(testurl, timeout: config[:timeout], verify_ssl: false).get
- elsif config[:https]
- RestClient::Resource.new(testurl, timeout: config[:timeout], verify_ssl: true).get
+ elsif config[:https]
+ RestClient::Resource.new(testurl, timeout: config[:timeout], verify_ssl: true).get
else
RestClient::Resource.new(testurl, timeout: config[:timeout]).get
end
if [200, 500].include? r.code