mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07:00
Rework the way params are assigned to TaskIncludes when they're dynamic
Copying the TaskInclude task (which is the parent) before loading the blocks makes the code much more simple and clean, and fixes a bug introduced during the performance improvement changes (and specifically the change which moved things to a single-parent model). Fixes #17064
This commit is contained in:
parent
cada4fb8d1
commit
f4237b2151
2 changed files with 20 additions and 23 deletions
|
@ -167,11 +167,11 @@ class Base:
|
|||
def dump_me(self, depth=0):
|
||||
if depth == 0:
|
||||
print("DUMPING OBJECT ------------------------------------------------------")
|
||||
print("%s- %s (%s)" % (" " * depth, self.__class__.__name__, self))
|
||||
print("%s- %s (%s, id=%s)" % (" " * depth, self.__class__.__name__, self, id(self)))
|
||||
if hasattr(self, '_parent') and self._parent:
|
||||
self._parent.dump_me(depth+2)
|
||||
dep_chain = self._parent.get_dep_chain()
|
||||
print("%s^ dep chain: %s" % (" "*(depth+2), dep_chain))
|
||||
#print("%s^ dep chain: %s" % (" "*(depth+2), dep_chain))
|
||||
if dep_chain:
|
||||
for dep in dep_chain:
|
||||
dep.dump_me(depth+2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue