Actions
Refactor #12529
openUse load_template_vars in TFTP orchestration's PXE menu generation
Status:
New
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Description
The generate_pxe_template in app/models/concerns/orchestration/tftp.rb manually sets initrd and kernel variables, but should use a shared helper for consistency with other template preview mechanisms.
This would avoid duplicating how those variables are set up, plus ensure that all other known instance variables are populated.
Changing it to use host.render_template might be best, or at least call load_template_vars.
Actions