Merge "s3-tests: Only try to copy outputs when there *are* outputs" into stable/victoria

This commit is contained in:
Zuul 2021-02-14 19:18:38 +00:00 committed by Gerrit Code Review
commit b5a0fabcda
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,10 @@
- hosts: all
become: true
tasks:
- name: Check for s3-tests outputs
stat:
path: '{{ ansible_env.HOME }}/s3compat/output'
register: s3_tests_output
- name: Copy s3-tests outputs from worker nodes to executor node
synchronize:
src: '{{ ansible_env.HOME }}/s3compat/output'
@ -8,3 +12,4 @@
mode: pull
copy_links: true
verify_host: true
when: s3_tests_output.stat.exists == true