mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
Avoid copying task parents in TaskExecutor
As Block.copy() is potentially expensive, avoid copying the parent structure of tasks in TaskExecutor.
This commit is contained in:
parent
06d4f4ad0e
commit
e244895174
2 changed files with 3 additions and 2 deletions
|
@ -139,7 +139,7 @@ class TestTaskExecutor(unittest.TestCase):
|
|||
|
||||
mock_host = MagicMock()
|
||||
|
||||
def _copy(exclude_block=False, exclude_tasks=False):
|
||||
def _copy(exclude_parent=False, exclude_tasks=False):
|
||||
new_item = MagicMock()
|
||||
return new_item
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue