1
0
Fork 0
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:
jctanner 2018-04-26 14:17:16 -04:00 committed by GitHub
parent bdb75cd82c
commit 05830658bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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