You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible/template
Pilou 2aa0f366d2 templar: ensure that exceptions are handled, fix 'AttributeError' (#48792)
* templar: ensure that exceptions are handled

* Fix AttributeError: object has no attribute 'message'

'message' attribute is deprecated since Python 2.6 and not available
with Python 3.

Simple reproducer:

    - hosts: localhost
      vars:
        not_json: "{{ 'test str' | from_json }}"
      tasks:
        - command: "echo {{ not_json }}"

(cherry picked from commit 62c05033d6)
6 years ago
..
__init__.py Warn about falling back to jinja2_native=false (#49063) 6 years ago
native_helpers.py Fix using vault encrypted data with jinja2_native (#49025) 6 years ago
safe_eval.py
template.py
vars.py templar: ensure that exceptions are handled, fix 'AttributeError' (#48792) 6 years ago