From 63fee94d90a3c80c056522bdc8acf6b9e5bab2ff Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Fri, 9 Oct 2015 14:36:55 +0200 Subject: [PATCH] Fix boolean values on upstream --- templates/etc/nginx/upstream/upstream.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc/nginx/upstream/upstream.conf.j2 b/templates/etc/nginx/upstream/upstream.conf.j2 index e647807..4fd7d21 100644 --- a/templates/etc/nginx/upstream/upstream.conf.j2 +++ b/templates/etc/nginx/upstream/upstream.conf.j2 @@ -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 -%} #