From cbe1bd65bf25e213c09a391fe65640d6f738ffc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 4 Sep 2022 23:37:01 +0200 Subject: [PATCH] loop - Always process the value using the templar * When the loop value is a list, its items may be templates or structures which contain templates. Because of that, they need to go through the templar. --- inventory_plugins/reconstructed.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/inventory_plugins/reconstructed.py b/inventory_plugins/reconstructed.py index cfbd367..881d473 100644 --- a/inventory_plugins/reconstructed.py +++ b/inventory_plugins/reconstructed.py @@ -276,9 +276,6 @@ class RcInstruction(abc.ABC): return rv def evaluate_loop(self, host_name, variables): - if isinstance(self._loop, list): - return self._loop - assert isinstance(self._loop, string_types) self._display.vvvvv( "host %s, action %s, evaluating loop template %s" % (host_name, self._action, repr(self._loop))