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/test/units/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 Add empty-init code-smell script. (#18406) 8 years ago
test_safe_eval.py test/: PEP8 compliancy (#24803) 8 years ago
test_templar.py templar: ensure that exceptions are handled, fix 'AttributeError' (#48792) 6 years ago
test_template_utilities.py test/: PEP8 compliancy (#24803) 8 years ago
test_tests_as_filters_warning.py Remove duplicated "instead" word (#38800) 7 years ago
test_vars.py template: fix KeyError: 'undefined variable: 0 (#27972) 7 years ago