From dd01570cedb8d80c15b021070cdae5e08515d42a Mon Sep 17 00:00:00 2001 From: Lindsey Hattamer Date: Thu, 10 Mar 2022 11:40:23 -0500 Subject: [PATCH] Revert "feat: test 500 error self signed cert" This reverts commit 81e002a0c9ad3486a654b623f23e548d83d71c8d, reversing changes made to 05390eed1ea7d55a57740ee4f3e879f323354be7. --- lib/argo_cd/client.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/argo_cd/client.rb b/lib/argo_cd/client.rb index fb53a8ad..dde448b4 100644 --- a/lib/argo_cd/client.rb +++ b/lib/argo_cd/client.rb @@ -26,7 +26,7 @@ def app_info def get_app_info(uri) https = Net::HTTP.new(uri.host, uri.port) - https.verify_mode = OpenSSL::SSL::VERIFY_NONE + https.verify_mode = OpenSSL::SSL::VERIFY_NONE if Rails.env.development? response = https.get(uri, request_headers) Response.new(response: response) @@ -58,7 +58,7 @@ def jwt def generate_token uri = URI("#{base_path}/api/v1/session") https = Net::HTTP.new(uri.host, uri.port) - https.verify_mode = OpenSSL::SSL::VERIFY_NONE + https.verify_mode = OpenSSL::SSL::VERIFY_NONE if Rails.env.development? request = build_request(uri)