From 6619b6d3824f0afdb7e0a0edcc20e2b2fc561db3 Mon Sep 17 00:00:00 2001 From: Joniel Pasqualetto Date: Wed, 25 Oct 2023 11:09:45 -0400 Subject: [PATCH] Fixes #36861 - fix username and password definition into request_params --- app/lib/katello/repo_discovery.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/katello/repo_discovery.rb b/app/lib/katello/repo_discovery.rb index 5038795b627..40bf019bedf 100644 --- a/app/lib/katello/repo_discovery.rb +++ b/app/lib/katello/repo_discovery.rb @@ -117,8 +117,8 @@ def docker_search url: "#{@uri}v1/search?q=#{@search}" } - request_params[:headers][:user] = @upstream_username unless @upstream_username.empty? - request_params[:headers][:password] = @upstream_password unless @upstream_password.empty? + request_params[:user] = @upstream_username unless @upstream_username.empty? + request_params[:password] = @upstream_password unless @upstream_password.empty? request_params[:proxy] = proxy_uri if proxy begin