Fix boolean values on upstream

pull/6/head
Emilien Mantel 2015-10-09 14:36:55 +02:00
parent a50d7e8774
commit 63fee94d90
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{%- macro s(key, value, is_bool, min_version) %}
{% if nginx_version.stdout | version_compare(min_version, 'ge') %}
{% if is_bool and value %} {{ key }}{% else %} {{ key }}={{ value }}{% endif %}
{% if is_bool and value %} {{ key }}{% elif not is_bool %} {{ key }}={{ value }}{% endif %}
{% endif %}
{%- endmacro -%}
#