template lookup: jinja2_native has no effect if global is off (#76385)

This is documented behavior that was unintentionally changed in #75587.
This commit is contained in:
Martin Krizek
2021-12-09 17:04:19 +01:00
committed by GitHub
parent e56e47faa7
commit 37c80ea893

View File

@ -103,7 +103,7 @@ class LookupModule(LookupBase):
# capture options
convert_data_p = self.get_option('convert_data')
lookup_template_vars = self.get_option('template_vars')
jinja2_native = self.get_option('jinja2_native')
jinja2_native = self.get_option('jinja2_native') and C.DEFAULT_JINJA2_NATIVE
variable_start_string = self.get_option('variable_start_string')
variable_end_string = self.get_option('variable_end_string')
comment_start_string = self.get_option('comment_start_string')