From 012a4165c6e500d865d812d6d53dd8ff76070e80 Mon Sep 17 00:00:00 2001 From: Geoffroy Van Elsuve Date: Fri, 22 Mar 2019 10:03:18 +0100 Subject: [PATCH] Fix missing test condition with is defined --- templates/nginx.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 7cdec60..2eee2d6 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -7,7 +7,7 @@ pid {{ nginx_pidfile }}; worker_processes {{ nginx_worker_processes }}; {% endblock %} -{% if nginx_extra_conf_options %} +{% if nginx_extra_conf_options is defined %} {{ nginx_extra_conf_options }} {% endif %} @@ -41,7 +41,7 @@ http { keepalive_requests {{ nginx_keepalive_requests }}; server_tokens {{ nginx_server_tokens }}; -{% if nginx_proxy_cache_path %} +{% if nginx_proxy_cache_path is defined %} proxy_cache_path {{ nginx_proxy_cache_path }}; {% endif %} {% endblock %} @@ -50,7 +50,7 @@ http { # gzip on; {% endblock %} -{% if nginx_extra_http_options %} +{% if nginx_extra_http_options is defined %} {{ nginx_extra_http_options|indent(4, False) }} {% endif %}