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

Adding missing colon to fix the block formating

This commit is contained in:
Jiri tyr 2015-09-10 13:45:05 +02:00
parent 90e005d234
commit 14dc16ca54

View file

@ -324,25 +324,25 @@ Combining hashes/dictionaries
.. versionadded:: 2.0 .. versionadded:: 2.0
The `combine` filter allows hashes to be merged. For example, the The `combine` filter allows hashes to be merged. For example, the
following would override keys in one hash: following would override keys in one hash::
{{ {'a':1, 'b':2}|combine({'b':3}) }} {{ {'a':1, 'b':2}|combine({'b':3}) }}
The resulting hash would be: The resulting hash would be::
{'a':1, 'b':3} {'a':1, 'b':3}
The filter also accepts an optional `recursive=True` parameter to not The filter also accepts an optional `recursive=True` parameter to not
only override keys in the first hash, but also recurse into nested only override keys in the first hash, but also recurse into nested
hashes and merge their keys too: hashes and merge their keys too::
{{ {'a':{'foo':1, 'bar':2}, 'b':2}|combine({'a':{'bar':3, 'baz':4}}, recursive=True) }} {{ {'a':{'foo':1, 'bar':2}, 'b':2}|combine({'a':{'bar':3, 'baz':4}}, recursive=True) }}
This would result in: This would result in::
{'a':{'foo':1, 'bar':3, 'baz':4}, 'b':2} {'a':{'foo':1, 'bar':3, 'baz':4}, 'b':2}
The filter can also take multiple arguments to merge: The filter can also take multiple arguments to merge::
{{ a|combine(b, c, d) }} {{ a|combine(b, c, d) }}