mirror of https://github.com/ansible/ansible.git
Properly handle unicode in safe_eval (#68576)
* Properly handle unicode in safe_eval Fixes #66943 * Update lib/ansible/template/safe_eval.py Co-authored-by: Sam Doran <sdoran@redhat.com>pull/69628/head
parent
889da811d7
commit
ecd986006e
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Properly handle unicode in ``safe_eval``. (https://github.com/ansible/ansible/issues/66943)
|
||||
@ -0,0 +1,8 @@
|
||||
- hosts: localhost
|
||||
gather_facts: no
|
||||
vars:
|
||||
original_dict: "{{ lookup('template', 'template.json.j2') }}"
|
||||
copy_dict: {}
|
||||
tasks:
|
||||
- set_fact:
|
||||
copy_dict: "{{ copy_dict | combine(original_dict) }}"
|
||||
@ -0,0 +1,4 @@
|
||||
{
|
||||
"key1": "ascii_value",
|
||||
"key2": "unicode_value_křížek",
|
||||
}
|
||||
Loading…
Reference in New Issue