Bug #25650
AutoYast 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
Associated revisions
History
#1
Updated by Eric Hansen over 4 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]
#2
Updated by Eric Hansen over 4 years ago
- Category set to Templates
- Found in Releases 1.20.0 added
#3
Updated by Eric Hansen over 4 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
#4
Updated by Eric Hansen over 4 years ago
Fixed by modifying to @host.os.medium_uri(@host)
#5
Updated by Tomer Brisker over 4 years ago
- Triaged changed from No to Yes
- Target version set to 1.20.2
- Assignee set to Shimon Shtein
#6
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6316 added
#7
Updated by Shimon Shtein over 4 years ago
- Bugzilla link set to 1654160
#8
Updated by Lukas Zapletal over 4 years ago
- Fixed in Releases 1.21.0 added
#9
Updated by Lukas Zapletal over 4 years ago
- Status changed from Ready For Testing to Resolved
#10
Updated by Tomer Brisker about 4 years ago
- Fixed in Releases 1.20.2 added
#11
Updated by Tomer Brisker about 4 years ago
- Status changed from Resolved to Closed
Fixes #25650 - Added medium_uri macro to templates