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

Commit

Permalink
Revert "feat: test 500 error self signed cert"
Browse files Browse the repository at this point in the history
This reverts commit 81e002a, reversing
changes made to 05390ee.
  • Loading branch information
LindseySaari committed Mar 10, 2022
1 parent 81e002a commit dd01570
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 dd01570

Please sign in to comment.