s3-tests: Only try to copy outputs when there *are* outputs
That way we avoid POST_FAILUREs when the real problem was in run. Change-Id: I9eb84d1c794d58f0af3b7d78d3bc4660c1823dc8
This commit is contained in:
parent
28cef6767f
commit
73aa48a823
@ -1,6 +1,10 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
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
|
- name: Copy s3-tests outputs from worker nodes to executor node
|
||||||
synchronize:
|
synchronize:
|
||||||
src: '{{ ansible_env.HOME }}/s3compat/output'
|
src: '{{ ansible_env.HOME }}/s3compat/output'
|
||||||
@ -8,3 +12,4 @@
|
|||||||
mode: pull
|
mode: pull
|
||||||
copy_links: true
|
copy_links: true
|
||||||
verify_host: true
|
verify_host: true
|
||||||
|
when: s3_tests_output.stat.exists == true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user