Project

General

Profile

Bug #38688

Updated by Ewoud Kohl van Wijngaarden 6 months ago

The provisioning templates use some variation of: 
 <pre> 
 if host_enc['parameters']['realm'] && @host.realm 
 </pre> 

 This requires the full ENC to be rendered for no good reason: the realm parameter is equivalent to <code>@host.realm&.name</code> (https://github.com/theforeman/foreman/blob/c28ab6ff1cd0b8fe77b853a5bfbd70ef86508af9/app/models/host_info_providers/static_info.rb#L54-L55). Since name is mandatory and we already check for <code>@host.realm</code> <code>@host.real</code> anyway we can drop the redundant check.

Back