Skip to content

Commit

Permalink
Merge pull request #280 from toanju/fixup
Browse files Browse the repository at this point in the history
fix(servers_config): fixup 05994e1
  • Loading branch information
myii authored Mar 30, 2021
2 parents 3722991 + c03729a commit 4cfc9f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nginx/servers_config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}:
Expand All @@ -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 %}
Expand Down

0 comments on commit 4cfc9f6

Please sign in to comment.