How to provision Fedora through foreman

Problem:
unable to provision fedora through foreman.

Expected outcome:
sucessfully installed fedora
Foreman and Proxy versions:
1.20.1.35-1
Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7
Other relevant data:
I am able to provision CentOS.
In default Kickstart file there is a if clause, which is causing to use mirror from internet for installation. Is there a reason why? I want to use the local synced repositories for provisioning. How to provide this?

<% if host.operatingsystem.name == ‘Fedora’ -%>
repo --name=fedora-everything --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-<%= host.operatingsystem.major %>&arch=<%= host.architecture %><%= proxy_string %> --proxy=“http://xyz:8000
<% end -%>

causes in:
repo --name=fedora-everything --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-31&arch=x86_64

Weird, indeed this is nonsense and it’s been there like forever. I propose to delete the block, tell me how it works without it:

Honestly, we mostly test CentOS/Debian/Ubuntu.