Actions
Bug #1129
closedSummary Puppet Report - require_ssl
Description
Embedded links for hosts in Summary Puppet Report were all http and not https - even if Foreman::Settings::require_ssl true
Patch below works for me...
/var/www/foreman/app/views/host_mailer# diff -u _link_to_host.text.html.erb _link_to_host.text.html.erb-new
--- _link_to_host.text.html.erb 2011-08-23 08:55:51.603479377 -0700 +++ _link_to_host.text.html.erb-new 2011-08-23 08:55:39.993358933 -0700 @@ -1,5 +1,5 @@ <td style="border: 1px solid #FF9933; border-collapse: collapse; padding: 4px; - background-color: #FFFFFF;"><%= link_to host, host_path(:id => host, :host => @url, :only_path => false) %> + background-color: #FFFFFF;"><%= link_to host, host_path(:id => host, :host => @url, :only_path => false, :protocol => SETTINGS[:require_ssl] == true ? "https://" : "http://") %> </td>
Actions