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:
parent
f63b8878fd
commit
943f4ebccf
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue