Skip to content

Commit

Permalink
Merge pull request #9 from remerge/fix-unwanted-file-delete-error
Browse files Browse the repository at this point in the history
fix error thrown when unwanted_file_delete option is set to false
  • Loading branch information
tundeaoni authored Sep 4, 2024
2 parents b942d3b + 4e47911 commit d9ce3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
ansible.builtin.file:
path: "{{ item.1.path }}"
state: absent
loop: "{{ unwanted_files.results | subelements('files') }}"
loop: "{{ unwanted_files.results | d([]) | subelements('files') }}"
loop_control:
label: "{{ item.1.path }}"
when:
Expand Down

0 comments on commit d9ce3aa

Please sign in to comment.