mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Exclude loop_args from post_validation for tasks
This field is templated specially during the TaskExecutor's loop calculation, so there's no need to post validate it again. Fixes #11481
This commit is contained in:
parent
aefca24616
commit
c3ce140dd2
1 changed files with 7 additions and 0 deletions
|
@ -187,6 +187,13 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
|
||||
super(Task, self).post_validate(templar)
|
||||
|
||||
def _post_validate_loop_args(self, attr, value, templar):
|
||||
'''
|
||||
Override post validation for the loop args field, which is templated
|
||||
specially in the TaskExecutor class when evaluating loops.
|
||||
'''
|
||||
return value
|
||||
|
||||
def get_vars(self):
|
||||
all_vars = self.vars.copy()
|
||||
if self._block:
|
||||
|
|
Loading…
Reference in a new issue