Skip to content

Commit 935472f

Browse files
authored
fix: Correct runtime error during cleanup task (#429)
1 parent dc49c0d commit 935472f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ FEATURES:
99
BUG FIXES:
1010

1111
- Fix incompatibility when using the `listen` directive and setting both the `quic` and `so_keepalive` parameters.
12+
- Correct cleanup error when `nginx_config_cleanup_paths` is not defined.
1213

1314
TESTS:
1415

tasks/config/cleanup-config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
ansible.builtin.file:
1313
path: "{{ item }}"
1414
state: absent
15-
loop: "{{ nginx_config_files['results'] | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
15+
loop: "{{ nginx_config_files['results'] | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
1616
notify: (Handler - NGINX Config) Run NGINX
17+
when: nginx_config_cleanup_files is defined or nginx_config_cleanup_paths is defined

0 commit comments

Comments
 (0)