Skip to content

Commit

Permalink
fix: Correct runtime error during cleanup task (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
pecastro authored Jul 29, 2024
1 parent dc49c0d commit 935472f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ FEATURES:
BUG FIXES:

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

TESTS:

Expand Down
3 changes: 2 additions & 1 deletion tasks/config/cleanup-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop: "{{ nginx_config_files['results'] | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
loop: "{{ nginx_config_files['results'] | default('') | map(attribute='files') | sum(start=[]) | map(attribute='path') | list + nginx_config_cleanup_files | default('') | list }}"
notify: (Handler - NGINX Config) Run NGINX
when: nginx_config_cleanup_files is defined or nginx_config_cleanup_paths is defined

0 comments on commit 935472f

Please sign in to comment.