mirror of https://github.com/ansible/ansible.git
* jinja2_native: preserve quotes in strings (#79119) Fixes #79083 (cherry picked from commitpull/79402/headd34b578685) * Fix test for jinja2_native preserve quotes (#79131) Fixes https://github.com/ansible/ansible/pull/79119#discussion_r993752129 (cherry picked from commit3a6eca6670)
parent
59f3c0238b
commit
c5065264c2
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "jinja2_native: preserve quotes in strings (https://github.com/ansible/ansible/issues/79083)"
|
||||
@ -0,0 +1,14 @@
|
||||
- hosts: localhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- assert:
|
||||
that:
|
||||
- quoted_str == '"hello"'
|
||||
- empty_quoted_str == '""'
|
||||
vars:
|
||||
third_nested_lvl: '"hello"'
|
||||
second_nested_lvl: "{{ third_nested_lvl }}"
|
||||
first_nested_lvl: "{{ second_nested_lvl }}"
|
||||
quoted_str: "{{ first_nested_lvl }}"
|
||||
empty_quoted_str: "{{ empty_str }}"
|
||||
empty_str: '""'
|
||||
Loading…
Reference in New Issue