summaryrefslogtreecommitdiff
path: root/lib/ansible/executor
diff options
context:
space:
mode:
authorMartin Krizek <martin.krizek@gmail.com>2022-08-11 21:14:17 +0200
committerGitHub <noreply@github.com>2022-08-11 15:14:17 -0400
commit2729088f2aa23a19fa3a561d7bf94770d8278477 (patch)
tree82da6fa10e30348efc9e7b43d9f4536aacf727b1 /lib/ansible/executor
parentcb0215bcddfc8c6d850c1893618282ed19895e6f (diff)
downloadansible-2729088f2aa23a19fa3a561d7bf94770d8278477.tar.gz
PlayIterator: deprecate cache_block_tasks and get_original_task (#78514)
Diffstat (limited to 'lib/ansible/executor')
-rw-r--r--lib/ansible/executor/play_iterator.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/ansible/executor/play_iterator.py b/lib/ansible/executor/play_iterator.py
index eb26e9f47c..db76417dfa 100644
--- a/lib/ansible/executor/play_iterator.py
+++ b/lib/ansible/executor/play_iterator.py
@@ -210,10 +210,11 @@ class PlayIterator:
return self._host_states[host.name].copy()
def cache_block_tasks(self, block):
- # now a noop, we've changed the way we do caching and finding of
- # original task entries, but just in case any 3rd party strategies
- # are using this we're leaving it here for now
- return
+ 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):
@@ -502,7 +503,11 @@ class PlayIterator:
return False
def get_original_task(self, host, task):
- # now a noop because we've changed the way we do caching
+ 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):