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
Loading
module ForemanWds
module UnattendedControllerExtensions
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'
super
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment