mirror of https://github.com/ansible/ansible
Fix YAML string loading using Python loader (#86421)
parent
f97d555247
commit
7d281b2a7c
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- yaml loading - Fix traceback when parsing YAML strings (not files) when using the pure Python implementation of PyYAML.
|
||||
@ -0,0 +1,9 @@
|
||||
- hosts: localhost
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- name: Read YAML from a string
|
||||
assert:
|
||||
that:
|
||||
- "'1' | from_yaml == 1"
|
||||
- "'[1]' | from_yaml == [1]"
|
||||
- "'key: value' | from_yaml == {'key': 'value'}"
|
||||
Loading…
Reference in new issue