Skip to content

Commit

Permalink
fix(servers_config): fixup 05994e1
Browse files Browse the repository at this point in the history
  • Loading branch information
toanju committed Mar 29, 2021
1 parent 3722991 commit c03729a
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 c03729a

Please sign in to comment.