Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/lib/katello/resources/discovery/yum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def spidr_proxy_details
details = {}

if proxy
details[:host] = proxy_host
details[:host] = proxy_hostname
details[:port] = proxy_port
details[:user] = proxy.username
details[:password] = proxy.password
Expand Down
4 changes: 4 additions & 0 deletions app/lib/katello/util/http_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def proxy
end

def proxy_host
URI(proxy.url).hostname
end

def proxy_hostname
URI(proxy.url).host
end

Expand Down