From a78141cdd7e458a4f908237b19319e2f5ae0ec3a Mon Sep 17 00:00:00 2001 From: Veronika Fisarova Date: Thu, 18 Aug 2022 13:16:40 +0200 Subject: [PATCH] Add the default filter so the validations have default fallback The validation test have their arguments defined by hand, which can cause issues. Default filter should ensure that the validations won't fail if the var negative_results has an empty value. Signed-off-by: Veronika Fisarova Change-Id: I2c33f839fc1023b284633bd1562f7ec4c86b9b6e --- roles/validations/tasks/run.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/validations/tasks/run.yaml b/roles/validations/tasks/run.yaml index 84770aa..b15c4e3 100644 --- a/roles/validations/tasks/run.yaml +++ b/roles/validations/tasks/run.yaml @@ -3,7 +3,7 @@ block: - name: Set fact for extra args. set_fact: - execution_extra_args: "{{ name.value.negative_results.extra_args }}" + execution_extra_args: "{{ name.value.negative_results.extra_args | default('') }}" when: - "'negative_results' in name.value " - negative | default(False) | bool