Skip to content
Snippets Groups Projects
Verified Commit 5a6a085e authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

dbscripts: nginx: remove unnecessary unique filter

The intention of "unique" in "groups['buildservers'] | sort | unique"
was to account for combining multiple groups and passing them to the
sort and unique filters. However, with only one group it looks silly.
parent 02ac12e6
No related branches found
No related tags found
No related merge requests found
Pipeline #16614 passed
......@@ -25,7 +25,7 @@ server {
satisfy any;
auth_request /devel/mirrorauth/;
{% for host in groups['buildservers'] | sort | unique %}
{% for host in groups['buildservers'] | sort %}
# {{ host }}
{% for address in ['ipv4_address', 'ipv6_address'] if address in hostvars[host] %}
allow {{ hostvars[host][address] }};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment