[BUG] Jinja2 warns that Jinja2 3.1 will no longer support contextfunction, must use renamed decorater as pass_context #60745
Labels
Bug
broken, incorrect, or confusing behavior
dependency
underlying Salt dependency issue
Deprecation
Milestone
Description
Jinja gives a warning that
contextfunction
is being renamed topass_context
in Jinja 3.1:This looks like it may be a slight fix by modifying https://github.com/saltstack/salt/blob/master/salt/utils/jinja.py#L709 in order to avoid future problems with Jinja as our dependency tree upgrades over time. Though, I don't know how many additional steps may need to occur to ensure we can upgrade the dependency tree to contain Jinja 3.x.
Other related Salt issues around Jinja 3.x:
Additional context
Ref: pallets/jinja#1381
The text was updated successfully, but these errors were encountered: