From 38c7c8a77267057e0a256b79e9c481a73a855595 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Wed, 22 Jun 2016 18:22:01 +0100 Subject: [PATCH] Fix overwrite check testing the name of the vhost rather than settings dict --- nginx/ng/vhosts_config.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/ng/vhosts_config.sls b/nginx/ng/vhosts_config.sls index 5b422ec..48921cd 100644 --- a/nginx/ng/vhosts_config.sls +++ b/nginx/ng/vhosts_config.sls @@ -94,7 +94,7 @@ nginx_vhost_available_dir: - template: jinja - context: config: {{ settings.config|json() }} - {% if 'overwrite' in vhost and vhost.overwrite == False %} + {% if 'overwrite' in settings and settings.overwrite == False %} - unless: - test -e {{ vhost_curpath(vhost) }} {% endif %}