From b91ecb27dbe63ad836a95348b7a6af3465897b48 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Sun, 24 Jun 2018 23:54:37 +0000 Subject: [PATCH] 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 --- roles/ara-report/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ara-report/tasks/main.yaml b/roles/ara-report/tasks/main.yaml index 8b3533f57..369cf7df4 100644 --- a/roles/ara-report/tasks/main.yaml +++ b/roles/ara-report/tasks/main.yaml @@ -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: