Module: ForemanGitTemplates::Orchestration::TFTP::Overrides
- Defined in:
- app/models/concerns/foreman_git_templates/orchestration/tftp.rb
Instance Method Summary collapse
Instance Method Details
#generate_pxe_template(kind) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'app/models/concerns/foreman_git_templates/orchestration/tftp.rb', line 11 def generate_pxe_template(kind) return super unless host.params['template_url'] template = host.repository_klass.new(name: kind) render_template(template: template) rescue ForemanGitTemplates::RepositoryReader::MissingFileError nil end |