PlayIterator: remove deprecated methods (#80437)

This commit is contained in:
Martin Krizek
2023-04-25 09:33:17 +02:00
committed by GitHub
parent 36df60e226
commit a2be8915de
3 changed files with 2 additions and 16 deletions
@@ -0,0 +1,2 @@
removed_features:
- PlayIterator - remove deprecated ``cache_block_tasks`` and ``get_original_task`` methods
-15
View File
@@ -241,13 +241,6 @@ class PlayIterator:
return self._host_states[host.name].copy()
def cache_block_tasks(self, block):
display.deprecated(
'PlayIterator.cache_block_tasks is now noop due to the changes '
'in the way tasks are cached and is deprecated.',
version=2.16
)
def get_next_task_for_host(self, host, peek=False):
display.debug("getting the next task for host %s" % host.name)
@@ -584,14 +577,6 @@ class PlayIterator:
return self.is_any_block_rescuing(state.always_child_state)
return False
def get_original_task(self, host, task):
display.deprecated(
'PlayIterator.get_original_task is now noop due to the changes '
'in the way tasks are cached and is deprecated.',
version=2.16
)
return (None, None)
def _insert_tasks_into_state(self, state, task_list):
# if we've failed at all, or if the task list is empty, just return the current state
if (state.fail_state != FailedStates.NONE and state.run_state == IteratingStates.TASKS) or not task_list:
-1
View File
@@ -240,7 +240,6 @@ test/units/utils/collection_loader/fixtures/collections_masked/ansible_collectio
test/units/utils/collection_loader/fixtures/collections_masked/ansible_collections/testns/__init__.py empty-init # testing that collections don't need inits
test/units/utils/collection_loader/fixtures/collections_masked/ansible_collections/testns/testcoll/__init__.py empty-init # testing that collections don't need inits
test/units/utils/collection_loader/test_collection_loader.py pylint:undefined-variable # magic runtime local var splatting
lib/ansible/executor/play_iterator.py pylint:ansible-deprecated-version
lib/ansible/playbook/helpers.py pylint:ansible-deprecated-version
lib/ansible/playbook/included_file.py pylint:ansible-deprecated-version
lib/ansible/plugins/action/__init__.py pylint:ansible-deprecated-version