mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
remove deprecated
This commit is contained in:
parent
21fc6a0c38
commit
2e9a7e2564
1 changed files with 1 additions and 4 deletions
|
@ -518,10 +518,7 @@ class TaskExecutor:
|
|||
if '_variable_params' in self._task.args:
|
||||
variable_params = self._task.args.pop('_variable_params')
|
||||
if isinstance(variable_params, dict):
|
||||
display.deprecated("Using variables for task params is unsafe, especially if the variables come from an external source like facts",
|
||||
version="2.6")
|
||||
variable_params.update(self._task.args)
|
||||
self._task.args = variable_params
|
||||
raise AnsibleError("Using a variable for a task's 'args' is not allowed as it is unsafe, facts can come from untrusted sources.")
|
||||
|
||||
# get the connection and the handler for this execution
|
||||
if (not self._connection or
|
||||
|
|
Loading…
Reference in a new issue