* Fix the way task_include fields were created and copied
* Have blocks get_dep_chain() look at task_include's blocks for proper
dep chain inheritance
* Fix the way task_include fields are copied to prevent a recursive
degradation
Fixes #14460
... | ... |
@@ -153,6 +153,8 @@ class Block(Base, Become, Conditional, Taggable): |
153 | 153 |
if self._dep_chain is None: |
154 | 154 |
if self._parent_block: |
155 | 155 |
return self._parent_block.get_dep_chain() |
156 |
+ elif self._task_include: |
|
157 |
+ return self._task_include._block.get_dep_chain() |
|
156 | 158 |
else: |
157 | 159 |
return None |
158 | 160 |
else: |