Skip to content

Commit

Permalink
Merge pull request #161 from agrare/fix_with_ssl_no_validation
Browse files Browse the repository at this point in the history
Fix service_url when using ssl-no-validation

(cherry picked from commit 57a71d9)
  • Loading branch information
Fryguy committed Jun 6, 2022
1 parent dfd7cb8 commit a824c8a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/models/manageiq/providers/redfish/manager_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,8 @@ def raw_connect(username, password, host, port, protocol)
end
end

SCHEME_LUT = {
"ssl" => "https",
"ssl-with-validation" => "https",
"non-ssl" => "http"
}.freeze

def service_url(protocol, host, port)
scheme = SCHEME_LUT[protocol]
scheme = protocol == "non-ssl" ? "http" : "https"
URI::Generic.build(:scheme => scheme, :host => host, :port => port).to_s
end

Expand Down

0 comments on commit a824c8a

Please sign in to comment.