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
pull/39313/merge
jctanner 7 years ago committed by GitHub
parent bdb75cd82c
commit 05830658bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save