Skip to content

Commit

Permalink
Fix failing on empty jenkins_casc_config_fileglobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Richter committed Nov 13, 2018
1 parent 65884d1 commit bcd550c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- "Found duplicate file(s) to deploy! Please ensure that the filenames are unique, otherwise unexpected result may occur!"
- "Complete file list: "
- "{{ _jenkins_casc_found_config_files }}"
when: _jenkins_casc_found_config_files | map('basename') | list != _jenkins_casc_found_config_files | map('basename') | list | unique
when: _jenkins_casc_found_config_files | default({}) | map('basename') | list != _jenkins_casc_found_config_files | default({}) | map('basename') | list | unique

- name: "upload : create configuration dir."
file:
Expand Down Expand Up @@ -46,4 +46,4 @@

when:
- _jenkins_casc_upload_files_result.results | length > 0
- jenkins_casc_config_unmanaged_delete
- jenkins_casc_config_unmanaged_delete

0 comments on commit bcd550c

Please sign in to comment.