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.
This commit is contained in:
Emmanuel BENOîT 2022-09-04 23:37:01 +02:00
parent 91ff8296d6
commit cbe1bd65bf

View file

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