fix syntax if custom option is an 'if' expression
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-10-03 13:56:32 +02:00
parent 01242f9cbe
commit 0201a7e921
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -83,7 +83,7 @@ server {
{% if location.custom_options is defined and location.custom_options %}
{% for inline_option in location.custom_options %}
{{ inline_option }};
{{ inline_option }}{{ "" if inline_option.startswith("if ") else ";" }}
{% endfor %}
{% endif %}
}
@ -101,7 +101,7 @@ server {
{% if error_location.custom_options is defined and error_location.custom_options %}
{% for inline_option in error_location.custom_options %}
{{ inline_option }};
{{ inline_option }}{{ "" if inline_option.startswith("if ") else ";" }}
{% endfor %}
{% endif %}
}