**Problem:
After upgrade from foreman 1.16 to the latest version 1.22. The snippet can not be used. And the error message is.
There was an error rendering the Kickstart Default SL7 template: ERF42-7327 [Foreman::Exception]: The snippet ‘Local_OS_repos’ threw an error: wrong number of arguments (given 2, expected 1)
Expected outcome:
**Foreman and Proxy versions: foreman-1.22
Foreman and Proxy plugin versions:
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)
Here is the snippet Local_OS_repos
http://mirror.ihep.ac.cn/yum/temp/Local_OS_repos
The problem variable is ‘@host.os.medium_uri(@host, os_url)’. It has two arguments, but it only support one argument.
logs