Skip to content
Snippets Groups Projects
  • Mark Goddard's avatar
    fc2292b2
    Use jinja2.pass_context instead of contextfilter · fc2292b2
    Mark Goddard authored
    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
    fc2292b2
    History
    Use jinja2.pass_context instead of contextfilter
    Mark Goddard authored
    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
This project manages its dependencies using pip. Learn more
requirements.txt 331 B
pbr!=2.1.0,>=2.0.0 # Apache-2.0

# ini parsing
oslo.config>=5.2.0 # Apache-2.0

# YAML parsing
PyYAML>=3.12 # MIT

# password generation
cryptography>=2.1 # BSD/Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0

# templating
Jinja2>=3 # BSD License (3 clause)

# Ansible's json_query
jmespath>=0.9.3 # MIT

# Hashicorp Vault
hvac>=0.10.1