From f03177cc4b0ae781a8786582e256b211f55a0d46 Mon Sep 17 00:00:00 2001 From: Rabi Mishra Date: Thu, 10 Sep 2020 10:59:52 +0530 Subject: [PATCH] Use bool filter when checking use_default_templates var extra_vars are passed as strings in older ansible-runner versions and would result in wrong boolean value. This regression downstream has been caused by https://review.opendev.org/#/c/737677/ Related BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1876999 Change-Id: Ie9119d2e6ac6b03c283a535b0445e83a2b564dbf (cherry picked from commit 9ad422071b018c7fb7d88126de35536285bb0bc8) --- tripleo_ansible/playbooks/cli-create-deployment-plan.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_ansible/playbooks/cli-create-deployment-plan.yaml b/tripleo_ansible/playbooks/cli-create-deployment-plan.yaml index e33a501b0..78c9a0970 100644 --- a/tripleo_ansible/playbooks/cli-create-deployment-plan.yaml +++ b/tripleo_ansible/playbooks/cli-create-deployment-plan.yaml @@ -88,7 +88,7 @@ templates_dir: "{{ default_templates_dir }}" when: use_default_templates|bool - when: use_default_templates or source_url is not none + when: use_default_templates|bool or source_url is not none # If plan_environment is an absolute path, then # don't prepend the templates dir. Else prepend it.