Skip to content

Commit

Permalink
Refs #30368 - Rename ca_cert_file to ssl_ca_file
Browse files Browse the repository at this point in the history
This is more consistent with other classes.
  • Loading branch information
ekohl committed Oct 27, 2024
1 parent d184fee commit 71042ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/lib/katello/http_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def initialize(params)

include Katello::Concerns::FilterSensitiveData

class_attribute :consumer_secret, :consumer_key, :ca_cert_file, :prefix, :site, :default_headers,
:ssl_client_cert, :ssl_client_key
class_attribute :consumer_secret, :consumer_key, :prefix, :site, :default_headers,
:ssl_client_cert, :ssl_client_key, :ssl_ca_file

attr_reader :json

Expand Down Expand Up @@ -128,7 +128,7 @@ def rest_client(http_type, method, path)
:authorize_path => "",
:access_token_path => ""}

params[:ca_file] = self.ca_cert_file unless self.ca_cert_file.nil?
params[:ca_file] = self.ssl_ca_file unless self.ssl_ca_file.nil?
# New OAuth consumer to setup signing the request
consumer = OAuth::Consumer.new(self.consumer_key,
self.consumer_secret,
Expand All @@ -147,7 +147,7 @@ def rest_client(http_type, method, path)
:open_timeout => SETTINGS[:katello][:rest_client_timeout],
:timeout => SETTINGS[:katello][:rest_client_timeout]
}
options[:ssl_ca_file] = self.ca_cert_file unless self.ca_cert_file.nil?
options[:ssl_ca_file] = self.ssl_ca_file unless self.ssl_ca_file.nil?
options[:ssl_client_cert] = self.ssl_client_cert unless self.ssl_client_cert.nil?
options[:ssl_client_key] = self.ssl_client_key unless self.ssl_client_key.nil?

Expand Down
2 changes: 1 addition & 1 deletion app/lib/katello/resources/candlepin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class CandlepinResource < HttpResource
self.site = "#{uri.scheme}://#{uri.host}:#{uri.port}"
self.consumer_secret = cfg[:oauth_secret]
self.consumer_key = cfg[:oauth_key]
self.ca_cert_file = cfg[:ca_cert_file]
self.ssl_ca_file = cfg[:ca_cert_file]

class << self
def process_response(response)
Expand Down
2 changes: 1 addition & 1 deletion app/lib/katello/resources/registry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def load_class
uri = URI.parse(content_app_url)
self.prefix = "/pulpcore_registry/"
self.site = "#{uri.scheme}://#{uri.host}:#{uri.port}"
self.ca_cert_file = Setting[:ssl_ca_file]
self.ssl_ca_file = Setting[:ssl_ca_file]
pulp_primary.pulp3_ssl_configuration(self, :net_http)

self
Expand Down

0 comments on commit 71042ad

Please sign in to comment.