Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Jinja2 NativeEnvironment dropping single quotes between elements in template to render #1020
Trying to find an explanation of the on the above. Tested this in an interpreter to narrow it down to just Jinja2, and nothing else that may be calling it, such as Ansible with jinja2_native set to True.
When not using jinja2_native, we get the expected behavior above that the three substitutions occur with single quotes around each value. When jinja2_native is set to true (in the NativeEnvironment as shown above), the inner single quotes in the string are disregarded, and a single string is returned with the three substitutions.
This also occurs even with additional characters between the single quotes:
Any help would be appreciated.
To add a little note on why this (more or less) happens: the template
The problem happens when
@davidism any thoughts?