mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 04:41:26 -07:00
Clarify StrictUndefined's side-effect in comment (#52508)
This commit is contained in:
parent
e8a31a12be
commit
3cc4981d63
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ def ansible_native_concat(nodes):
|
||||||
else:
|
else:
|
||||||
if isinstance(nodes, types.GeneratorType):
|
if isinstance(nodes, types.GeneratorType):
|
||||||
nodes = chain(head, nodes)
|
nodes = chain(head, nodes)
|
||||||
|
# Stringifying the nodes is important as it takes care of
|
||||||
|
# StrictUndefined by side-effect - by raising an exception.
|
||||||
out = u''.join([text_type(v) for v in nodes])
|
out = u''.join([text_type(v) for v in nodes])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue