Project

General

Profile

Actions

Bug #8228

closed

default_template_url removed from API controllers, causes PXE menu build failure

Added by Dominic Cleal over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

#4463 removed default_template_url methods from the two API controllers, but left it in the UI controller. This method is called by PXE default templates, e.g.

ks=<%= default_template_url(profile[:template], profile[:hostgroup]) %>

https://github.com/theforeman/community-templates/blob/master/pxe/PXELinux_default.erb#L25

I see it's been fixed in the UI controller for the #4463 bug, but the code should have been moved somewhere common, not removed in 2/3 places.

failed to process template: undefined method `default_template_url' for #&lt;Api::V2::ConfigTemplatesController:0x0000000a0ada48&gt;

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #4463: Default profiles templates default to https:// connection for kickstartClosedStephen Benjamin02/26/2014Actions
Actions

Also available in: Atom PDF