From 1f79d9b522435a3d82525d0406c7bc5c96ab8482 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 12 Nov 2024 18:29:06 -0800 Subject: [PATCH] Removed deprecated include_delegate_to param * Remove deprecated include_delegate_to param from get_vars API in manager.py Signed-off-by: Abhijeet Kasurde --- changelogs/fragments/include_delegate_to.yml | 3 +++ lib/ansible/vars/manager.py | 7 +------ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 changelogs/fragments/include_delegate_to.yml diff --git a/changelogs/fragments/include_delegate_to.yml b/changelogs/fragments/include_delegate_to.yml new file mode 100644 index 00000000000..4887d0f751f --- /dev/null +++ b/changelogs/fragments/include_delegate_to.yml @@ -0,0 +1,3 @@ +--- +removed_features: + - manager - remove deprecated include_delegate_to parameter from get_vars API. diff --git a/lib/ansible/vars/manager.py b/lib/ansible/vars/manager.py index 3d8ffe9fa14..cfcdf708fb4 100644 --- a/lib/ansible/vars/manager.py +++ b/lib/ansible/vars/manager.py @@ -135,7 +135,7 @@ class VariableManager: def set_inventory(self, inventory): self._inventory = inventory - def get_vars(self, play=None, host=None, task=None, include_hostvars=True, include_delegate_to=False, use_cache=True, + def get_vars(self, play=None, host=None, task=None, include_hostvars=True, use_cache=True, _hosts=None, _hosts_all=None, stage='task'): """ Returns the variables, with optional "context" given via the parameters @@ -159,11 +159,6 @@ class VariableManager: on the functionality they provide. These arguments may be removed at a later date without a deprecation period and without warning. """ - if include_delegate_to: - display.deprecated( - "`VariableManager.get_vars`'s argument `include_delegate_to` has no longer any effect.", - version="2.19", - ) display.debug("in VariableManager get_vars()")