Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
feat: revert test 500 error self signed cert
Browse files Browse the repository at this point in the history
Revert "feat: test 500 error self signed cert"
  • Loading branch information
LindseySaari authored Mar 10, 2022
2 parents 81e002a + dd01570 commit 365d21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/argo_cd/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 365d21a

Please sign in to comment.