aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/vhost_repository.conf
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem/templates/vhost_repository.conf')
-rw-r--r--modules/buildsystem/templates/vhost_repository.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/buildsystem/templates/vhost_repository.conf b/modules/buildsystem/templates/vhost_repository.conf
index 0e50d78b..9fa207a6 100644
--- a/modules/buildsystem/templates/vhost_repository.conf
+++ b/modules/buildsystem/templates/vhost_repository.conf
@@ -22,13 +22,13 @@ distros = scope.lookupvar('buildsystem::var::distros::distros')
<%-
if repo_allow_from_ips != nil || repo_allow_from_domains != nil then
access_requires = [ 'all denied' ]
- if distro['repo_allow_from_ips'] != nil then
- for allow in distro['repo_allow_from_ips'] do
+ if repo_allow_from_ips != nil then
+ for allow in repo_allow_from_ips do
access_requires << 'ip ' + allow
end
end
- if distro['repo_allow_from_domains'] != nil then
- for allow in distro['repo_allow_from_domains'] do
+ if repo_allow_from_domains != nil then
+ for allow in repo_allow_from_domains do
access_requires << 'host ' + allow
end
end