1
0
Fork 0
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:
Brian Coca 2018-06-21 13:30:07 -04:00 committed by Brian Coca
parent 21fc6a0c38
commit 2e9a7e2564

View file

@ -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