mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
Correctly handle variable issues when evaluating jinja2 when statements
Fixes #4025
This commit is contained in:
parent
af139cd56a
commit
294451d002
2 changed files with 14 additions and 3 deletions
|
@ -430,7 +430,7 @@ def template_from_file(basedir, path, vars):
|
|||
raise errors.AnsibleError("unable to read %s" % realpath)
|
||||
|
||||
|
||||
# Get jinja env overrides from template
|
||||
# Get jinja env overrides from template
|
||||
if data.startswith(JINJA2_OVERRIDE):
|
||||
eol = data.find('\n')
|
||||
line = data[len(JINJA2_OVERRIDE):eol]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue