fix syntax if custom option is an 'if' expression
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
01242f9cbe
commit
0201a7e921
@ -83,7 +83,7 @@ server {
|
|||||||
{% if location.custom_options is defined and location.custom_options %}
|
{% if location.custom_options is defined and location.custom_options %}
|
||||||
|
|
||||||
{% for inline_option in location.custom_options %}
|
{% for inline_option in location.custom_options %}
|
||||||
{{ inline_option }};
|
{{ inline_option }}{{ "" if inline_option.startswith("if ") else ";" }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ server {
|
|||||||
{% if error_location.custom_options is defined and error_location.custom_options %}
|
{% if error_location.custom_options is defined and error_location.custom_options %}
|
||||||
|
|
||||||
{% for inline_option in error_location.custom_options %}
|
{% for inline_option in error_location.custom_options %}
|
||||||
{{ inline_option }};
|
{{ inline_option }}{{ "" if inline_option.startswith("if ") else ";" }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user