[stable-2.7] Fix return statement where we short circuit _get_delegated_vars (#48102)
(cherry picked from commit cb5626c
)
Co-authored-by: Matt Martz <matt@sivel.net>
This commit is contained in:
parent
5dfd7c181f
commit
0be3307bac
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/loop-cache-include-apply.yml
Normal file
2
changelogs/fragments/loop-cache-include-apply.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- delegate_to - Fix issue where delegate_to was upplied via ``apply`` on an include, where a loop was present on the include
|
|
@ -489,7 +489,7 @@ class VariableManager:
|
|||
def _get_delegated_vars(self, play, task, existing_variables):
|
||||
if not hasattr(task, 'loop'):
|
||||
# This "task" is not a Task, so we need to skip it
|
||||
return {}
|
||||
return {}, None
|
||||
|
||||
# we unfortunately need to template the delegate_to field here,
|
||||
# as we're fetching vars before post_validate has been called on
|
||||
|
|
Loading…
Reference in a new issue