Skip to content

Commit

Permalink
Merge "Restore use of contextfunction decorator" into stable/wallaby
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Apr 5, 2022
2 parents cba638f + 30fbbad commit f5c243e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kolla/template/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
import os
import yaml

# NOTE: jinja2 3.1.0 dropped contextfilter in favour of pass_context.
# NOTE: jinja2 3.1.0 dropped contextfunction in favour of pass_context.
try:
from jinja2 import pass_context
except ImportError:
from jinja2 import contextfilter as pass_context
from jinja2 import contextfunction as pass_context


def debian_package_install(packages, clean_package_cache=True):
Expand Down

0 comments on commit f5c243e

Please sign in to comment.