Browse Source

fix(servers_config): fixup 05994e1

tags/v2.6.2
Tobias Jungel 3 years ago
parent
commit
c03729ae32
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      nginx/servers_config.sls

+ 2
- 1
nginx/servers_config.sls View File

@@ -106,6 +106,7 @@ nginx_server_available_dir:
{{ conf_state_id }}:
file.absent:
- name: {{ server_curpath(server) }}
{% do server_states.append(conf_state_id) %}
{% else %}
{% if settings.enabled == True %}
{{ conf_state_id }}:
@@ -131,9 +132,9 @@ nginx_server_available_dir:
- unless:
- test -e {{ server_curpath(server) }}
{% endif %}
{% do server_states.append(conf_state_id) %}
{% endif %}
{% endif %}
{% do server_states.append(conf_state_id) %}

{% if settings.enabled != None %}
{% set status_state_id = 'server_state_' ~ loop.index0 %}

Loading…
Cancel
Save