From 1b76775fc8b1058a4f754dd90ab0a3ba07aec280 Mon Sep 17 00:00:00 2001 From: Lorenzo Date: Wed, 7 Dec 2016 13:00:33 +0100 Subject: [PATCH] boolean filter instead of True comparison import suggestion from @edoput: "al massimo posso capire un filtro come | bool" FB PM 17/11/2016 00:22 --- roles/nginx/templates/site.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/templates/site.j2 b/roles/nginx/templates/site.j2 index 14e1d94..1176a88 100644 --- a/roles/nginx/templates/site.j2 +++ b/roles/nginx/templates/site.j2 @@ -4,7 +4,7 @@ server { {% for key,value in item.server|dictsort if key != 'file_name' %} {{ key }} {{ value }}; -{% if nginx_separate_logs_per_site == True %} +{% if nginx_separate_logs_per_site|bool %} access_log {{ nginx_log_dir }}/{{ item.server.server_name }}-{{ nginx_access_log_name }}; error_log {{ nginx_log_dir }}/{{ item.server.server_name }}-{{ nginx_error_log_name }}; {% endif %}