Clarify StrictUndefined's side-effect in comment (#52508)

pull/52559/head
Martin Krizek 5 years ago committed by GitHub
parent e8a31a12be
commit 3cc4981d63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save