Correctly assign parent when squashing adjacent implict Blocks
Related to: #18315
Related to: #18206
Related to: #17810
(cherry picked from commit d12475c98b
)
This commit is contained in:
parent
2b9659945c
commit
09fc911a48
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ def load_list_of_blocks(ds, play, parent_block=None, role=None, task_include=Non
|
||||||
# squash them down to a single block to save processing time later.
|
# squash them down to a single block to save processing time later.
|
||||||
if b._implicit and len(block_list) > 0 and block_list[-1]._implicit:
|
if b._implicit and len(block_list) > 0 and block_list[-1]._implicit:
|
||||||
for t in b.block:
|
for t in b.block:
|
||||||
t._block = block_list[-1]
|
t._parent = block_list[-1]
|
||||||
block_list[-1].block.extend(b.block)
|
block_list[-1].block.extend(b.block)
|
||||||
else:
|
else:
|
||||||
block_list.append(b)
|
block_list.append(b)
|
||||||
|
|
Loading…
Reference in a new issue