1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

rename special word '_value' to '+value'

This commit is contained in:
z1kk0 2024-06-02 16:52:18 +03:00
parent a1a7bd34d0
commit ba166dd709

View file

@ -305,7 +305,7 @@ EXAMPLES = r'''
name: Scumm bar
location: Monkey island
# Value
_value: unreal
+value: unreal
# Subnodes
_:
- floor: Pirate hall
@ -761,7 +761,7 @@ def child_to_element(module, child, in_type):
(key, value) = next(iteritems(child))
if isinstance(value, MutableMapping):
children = value.pop('_', None)
child_value = value.pop('_value', None)
child_value = value.pop('+value', None)
node = etree.Element(key, value)