From 3cc4981d63d463cffbbb44b4e55fcda1048e46f2 Mon Sep 17 00:00:00 2001 From: Martin Krizek Date: Tue, 19 Feb 2019 08:47:43 +0100 Subject: [PATCH] Clarify StrictUndefined's side-effect in comment (#52508) --- lib/ansible/template/native_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/template/native_helpers.py b/lib/ansible/template/native_helpers.py index 5c93ac9fec2..11c14b7fa12 100644 --- a/lib/ansible/template/native_helpers.py +++ b/lib/ansible/template/native_helpers.py @@ -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: