michaelrigart / ansible-role-interfaces

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

relace contextfilter with pass_context #127

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

Cool, thanks for the merge.