fix syntax if custom option is an 'if' expression
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-10-03 13:56:32 +02:00
parent 01242f9cbe
commit 0201a7e921
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 2 additions and 2 deletions

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 %}
}