Bug #25650
closedAutoYast Default iPXE Template Broken due to Template Changes
Description
After upgrade from 1.18.1 to 1.20.0, building SLES is broken.
If I a attempt to preview this template,
https://github.com/theforeman/community-templates/blob/develop/provisioning_templates/iPXE/autoyast_default_ipxe.erb
I see the following error,
Warning! There was an error rendering the AutoYaST default iPXE template: undefined local variable or method `medium_uri' for #<Foreman::Renderer::Scope::Provisioning:0x00007f3d1136db70> Did you mean? medium_url media_url
Updated by Eric Hansen about 6 years ago
If I change this from medium_uri to medium_url, I get a different error
There was an error rendering the AutoYaST default iPXE template: No route matches {:action=>"update", :controller=>"media"}, missing required keys: [:id]
Updated by Eric Hansen about 6 years ago
- Category set to Templates
- Found in Releases 1.20.0 added
Updated by Eric Hansen about 6 years ago
Trying media_url, I get the following error
There was an error rendering the AutoYaST default iPXE template: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
Updated by Eric Hansen about 6 years ago
Fixed by modifying to @host.os.medium_uri(@host)
Updated by Tomer Brisker about 6 years ago
- Assignee set to Shimon Shtein
- Target version set to 1.20.2
- Triaged changed from No to Yes
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6316 added
Updated by Lukas Zapletal about 6 years ago
- Status changed from Ready For Testing to Resolved
Updated by Tomer Brisker almost 6 years ago
- Status changed from Resolved to Closed