Browse Source

Fix overwrite check testing the name of the vhost rather than settings dict

susefix
George Robinson 8 years ago
parent
commit
38c7c8a772
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nginx/ng/vhosts_config.sls

+ 1
- 1
nginx/ng/vhosts_config.sls View File

- template: jinja - template: jinja
- context: - context:
config: {{ settings.config|json() }} config: {{ settings.config|json() }}
{% if 'overwrite' in vhost and vhost.overwrite == False %}
{% if 'overwrite' in settings and settings.overwrite == False %}
- unless: - unless:
- test -e {{ vhost_curpath(vhost) }} - test -e {{ vhost_curpath(vhost) }}
{% endif %} {% endif %}

Loading…
Cancel
Save