mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
task_executor send the task as a kwarg to connections (#39341)
* make taskexecutor send the task as a kwarg to connections * Fix line length error * Send just the task uuid
This commit is contained in:
parent
bdb75cd82c
commit
05830658bc
1 changed files with 8 additions and 1 deletions
|
@ -794,7 +794,14 @@ class TaskExecutor:
|
|||
|
||||
conn_type = self._play_context.connection
|
||||
|
||||
connection = self._shared_loader_obj.connection_loader.get(conn_type, self._play_context, self._new_stdin, ansible_playbook_pid=to_text(os.getppid()))
|
||||
connection = self._shared_loader_obj.connection_loader.get(
|
||||
conn_type,
|
||||
self._play_context,
|
||||
self._new_stdin,
|
||||
task_uuid=self._task._uuid,
|
||||
ansible_playbook_pid=to_text(os.getppid())
|
||||
)
|
||||
|
||||
if not connection:
|
||||
raise AnsibleError("the connection plugin '%s' was not found" % conn_type)
|
||||
|
||||
|
|
Loading…
Reference in a new issue