ara-report: add missing ara_report_run check

This change uses the ara_report_run variable to toggle the database copy.
Otherwise, when ara_report_run is set to 'failure', then the report is
still created if the job succeed

Change-Id: I722a2bff82af2a37fbdec49b2bfd1ad95059ecbe
This commit is contained in:
Tristan Cacqueray 2018-06-24 23:54:37 +00:00
parent fbb58ddfde
commit b91ecb27db
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@
- ara_installed.rc == 0
- ara_db.stat.exists
- ara_report_type == 'database'
- ara_report_run | bool or (ara_report_run == 'failure' and not zuul_success | default(false) | bool)
block:
- name: Create the ARA database report directory
file: