Skip to content

Commit

Permalink
rename method from prepare_scc_update_request to prepare_scc_upgrade_…
Browse files Browse the repository at this point in the history
…request
  • Loading branch information
jesusbv committed Aug 30, 2024
1 parent 7e139ad commit f429365
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions engines/scc_proxy/lib/scc_proxy/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def prepare_scc_request(uri_path, product, auth, params, mode)
scc_request
end

def prepare_scc_update_request(uri_path, product, auth, mode)
def prepare_scc_upgrade_request(uri_path, product, auth, mode)
scc_request = Net::HTTP::Put.new(uri_path, headers(auth, nil))
scc_request.body = {
identifier: product.identifier,
Expand Down Expand Up @@ -270,7 +270,7 @@ def scc_upgrade(auth, product, system_login, mode, logger)
uri = URI.parse(SYSTEM_PRODUCTS_URL)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
scc_request = prepare_scc_update_request(uri.path, product, auth, mode)
scc_request = prepare_scc_upgrade_request(uri.path, product, auth, mode)
response = http.request(scc_request)
unless response.code_type == Net::HTTPCreated
logger.info "Could not upgrade the system (#{system_login}), error: #{response.message} #{response.code}"
Expand Down Expand Up @@ -363,12 +363,6 @@ def scc_activate_product
raise 'Incompatible extension product' unless @product.arch == base_prod.arch && @product.version == base_prod.version

update_params_system_info mode
# params['hostname'] = @system.hostname
# params['proxy_byos_mode'] = mode
# params['scc_login'] = @system.login
# params['scc_password'] = @system.password
# params['hwinfo'] = JSON.parse(@system.system_information)
# params['instance_data'] = @system.instance_data
announce_auth = "Token token=#{params[:token]}"

response = SccProxy.announce_system_scc(announce_auth, params)
Expand Down

0 comments on commit f429365

Please sign in to comment.