1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

undefined var should fail 'label' setting (#17675)

This commit is contained in:
Brian Coca 2016-09-27 12:24:16 -04:00 committed by GitHub
parent f63b8878fd
commit 943f4ebccf

View file

@ -276,7 +276,7 @@ class TaskExecutor:
if label is not None:
templar = Templar(loader=self._loader, shared_loader_obj=self._shared_loader_obj, variables=self._job_vars)
res['_ansible_item_label'] = templar.template(label, fail_on_undefined=False)
res['_ansible_item_label'] = templar.template(label)
self._rslt_q.put(TaskResult(self._host.name, self._task._uuid, res), block=False)
results.append(res)