michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

jinja2 contextfilter is deprecated #126

Closed YuxingW closed 2 years ago

YuxingW commented 2 years ago

contextfilter is deprecated in jinja2 and can be replaced by pass_context https://github.com/jupyter/nbconvert/issues/1568 Can we please replace contextfilter in filter_plugins/filters.py? Otherwise there is an error with new jinja2: michaelrigart.interfaces/filter_plugins/filters.py) as it seems to be invalid: module 'jinja2' has no attribute 'contextfilter'

YuxingW commented 2 years ago

We have checked in a fix for this issue in the latest code. Closing the issue.