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 9ad422071b
)
This commit is contained in:
parent
bb1f8b0bb5
commit
f03177cc4b
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue