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 #1

Updated by Dominic Cleal over 9 years ago

  • Related to Bug #4463: Default profiles templates default to https:// connection for kickstart added
Actions #2

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/1913 added
  • Pull request deleted ()
Actions #3

Updated by Shlomi Zadok over 9 years ago

  • Assignee set to Shlomi Zadok
Actions #4

Updated by Shlomi Zadok over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #5

Updated by Dominic Cleal over 9 years ago

  • translation missing: en.field_release changed from 28 to 29
Actions

Also available in: Atom PDF