mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
Clarify StrictUndefined's side-effect in comment (#52508)
This commit is contained in:
@@ -55,6 +55,8 @@ def ansible_native_concat(nodes):
|
||||
else:
|
||||
if isinstance(nodes, types.GeneratorType):
|
||||
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])
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user