Project

General

Profile

Actions

Bug #9782

closed

Using media_path in Templates does not resolve properly

Added by Mattias Giese about 10 years ago. Updated over 6 years ago.

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

Description

Using <%= media_path %> in provisioning templates always resolves to '/media'.

From the IRC:

<snip>
14:08:29 Dominic | lowercase: yeah, I can reproduce that, I guess something is leaking in from Rails as it has a "media_path" that | would link to our installation media page - I suppose that's the result you're getting. Could you file that | please?
[...]
14:11:05 Dominic | as a workaround you can use: <%= @host.os.medium_uri(@host) >
14:11:18 Dominic | (that's what the media_path helper calls)
14:12:10 Dominic | or <
= @mediapath %> actually, I think that's also the same, it's what we use in the kickstarts

</snip>


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #12791: The architecture is not interpolated for the variable @host.url_for_boot(:initrd) on suse based systemsClosed12/12/2015Actions
Related to Foreman - Refactor #14319: Remove media_path template helper which is no longer usedClosedMarek Hulán03/22/2016Actions
Related to Foreman - Bug #15709: SLES doesn't get mediapath set in PXELinux config fileClosed07/15/2016Actions
Actions

Also available in: Atom PDF