Revision f3d15cc9
Added by Ivan Necas almost 7 years ago
lib/foreman/foreman_url_renderer.rb | ||
---|---|---|
|
||
host = @host
|
||
host = self if @host.nil? && self.class < Host::Base
|
||
proxy = host.try(:subnet).try(:tftp)
|
||
proxy = host.try(:provision_interface).try(:subnet).try(:tftp)
|
||
|
||
# use template_url from the request if set, but otherwise look for a Template
|
||
# feature proxy, as PXE templates are written without an incoming request.
|
Also available in: Unified diff
Fixes #19213 - use provision interface in foreman_url
Before this patch, we were using primary interface for checking on ftfp
proxy and its template feature. Provision interface is more appropriate
for this purposes.
(cherry picked from commit 778d8bcbc08f790aae8ed2abb9637ab880804275)