In my foreman 1.23 install i can get the mirror uri using
@host.os.medium_uri(@host)
When i do the same in 1.24 or 2.0 i get an error.
undefined method '#medium_uri' for Windows::Jail (Windows)
Is there anything changed or is this a bug?
In my foreman 1.23 install i can get the mirror uri using
@host.os.medium_uri(@host)
When i do the same in 1.24 or 2.0 i get an error.
undefined method '#medium_uri' for Windows::Jail (Windows)
Is there anything changed or is this a bug?
The operating system method medium_uri
has been deprecated in Foreman 1.20 and has been removed in Foreman 1.24.
You can use the medium_uri
macro directly instead, without need of going through the host and os:
<%= medium_uri %>
Somehow i overlooked that thanks
I tested it on 2.0 and it works. Thanks.