From c03729ae326876a20cb22c346f9d4cd96418af9a Mon Sep 17 00:00:00 2001 From: Tobias Jungel Date: Tue, 30 Mar 2021 01:42:27 +0200 Subject: [PATCH] fix(servers_config): fixup 05994e1 --- nginx/servers_config.sls | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nginx/servers_config.sls b/nginx/servers_config.sls index 915ac1c..09aec68 100644 --- a/nginx/servers_config.sls +++ b/nginx/servers_config.sls @@ -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 %} -{% endif %} -{% endif %} {% do server_states.append(conf_state_id) %} +{% endif %} +{% endif %} {% if settings.enabled != None %} {% set status_state_id = 'server_state_' ~ loop.index0 %}