Fix AnsibleUnsafeText when copying files larger than SMALL_FILE_LIMIT

Small files are carried in-band in the communication between
controller and remote, with larger files being copied by falling back
to a more traditional ansible put_file mechanism. This large
file code path was missed in b822f20.
This commit is contained in:
Jonathan Rosser 2024-08-28 08:24:35 +01:00 committed by Alex Willmer
parent ce1accedbc
commit 0bd3c6cba5
1 changed files with 2 additions and 2 deletions

View File

@ -1129,6 +1129,6 @@ class Connection(ansible.plugins.connection.ConnectionBase):
self.get_chain().call(
ansible_mitogen.target.transfer_file,
context=self.binding.get_child_service_context(),
in_path=in_path,
out_path=out_path
in_path=ansible_mitogen.utils.unsafe.cast(in_path),
out_path=ansible_mitogen.utils.unsafe.cast(out_path)
)