Skip to content
Snippets Groups Projects
Verified Commit ff7b3136 authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

Skip file extension on CSR template kind param

The Foreman routes do not allow an extension on the kind, leading to 404
errors.
parent ff67e09a
No related branches found
No related tags found
No related merge requests found
module ForemanWds module ForemanWds
module UnattendedControllerExtensions module UnattendedControllerExtensions
def host_template def host_template
return wds_render_csr if params[:kind] == 'csr_attributes.yaml' return wds_render_csr if params[:kind] == 'csr_attributes'
return wds_deploy_localboot if params[:kind] == 'wds_localboot' return wds_deploy_localboot if params[:kind] == 'wds_localboot'
super super
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment