diff options
| author | Mark Goddard <mark@stackhpc.com> | 2022-03-24 16:25:12 +0000 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2022-03-24 16:29:26 +0000 |
| commit | fc2292b230fb2be03acb2273f097c566f59ba8fc (patch) | |
| tree | 4315ad8169db43cd0408afbf2ae2a183461ff59b /requirements.txt | |
| parent | efadc9591327edabf13d6c0b74178993bf5ef382 (diff) | |
| download | kolla-ansible-fc2292b230fb2be03acb2273f097c566f59ba8fc.tar.gz kolla-ansible-fc2292b230fb2be03acb2273f097c566f59ba8fc.zip | |
Use jinja2.pass_context instead of contextfilter
The contextfilter decorator was deprecated in jinja2 3.0.0, and has been
dropped in 3.1.0. This results in the following warning, and failed
attempts to use filters:
[WARNING]: Skipping plugin (filters.py) as it seems to be invalid:
module 'jinja2' has no attribute 'contextfilter'
This change switches to use the pass_context decorator. The minimum
version of Jinja2 is raised to 3 to ensure pass_context is present.
Change-Id: I649dd6211d3ae72b9539bc44652ef8cf5d579777
Diffstat (limited to 'requirements.txt')
| -rw-r--r-- | requirements.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/requirements.txt b/requirements.txt index e85f7744c..59147c1bd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,7 @@ cryptography>=2.1 # BSD/Apache-2.0 oslo.utils>=3.33.0 # Apache-2.0 # templating -Jinja2>=2.10 # BSD License (3 clause) +Jinja2>=3 # BSD License (3 clause) # Ansible's json_query jmespath>=0.9.3 # MIT |
