mirror of https://github.com/ansible/ansible.git
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)
pull/49461/head
parent
91d3857c36
commit
2aa0f366d2
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Fix AttributeError (Python 3 only) when an exception occurs while rendering a template
|
||||
Loading…
Reference in New Issue