mirror of https://github.com/ansible/ansible.git
Signed-off-by: Yadnesh Kulkarni <ykulkarn@redhat.com>pull/72705/head
parent
18e5628b19
commit
3add96909d
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Fix parsing of values when using empty string as a key (https://github.com/ansible/ansible/issues/57132)
|
@ -0,0 +1,15 @@
|
||||
- name: Test set_fact for empty string as a key
|
||||
hosts: testhost
|
||||
gather_facts: no
|
||||
vars:
|
||||
value: 1
|
||||
tasks:
|
||||
- name: Define fact with key as an empty string
|
||||
set_fact:
|
||||
foo:
|
||||
"": "bar{{ value }}"
|
||||
|
||||
- name: Verify the parsed value of the key
|
||||
assert:
|
||||
that:
|
||||
- foo == {"":"bar1"}
|
Loading…
Reference in New Issue