ansible_mitogen: Handle unsafe paths in _remote_chmod

This is missing from b822f20007
pull/1087/head
Jonathan Rosser 4 months ago committed by Alex Willmer
parent c95d41128f
commit 06617f8231

@ -280,7 +280,9 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase):
paths, mode, sudoable) paths, mode, sudoable)
return self.fake_shell(lambda: mitogen.select.Select.all( return self.fake_shell(lambda: mitogen.select.Select.all(
self._connection.get_chain().call_async( self._connection.get_chain().call_async(
ansible_mitogen.target.set_file_mode, path, mode ansible_mitogen.target.set_file_mode,
ansible_mitogen.utils.unsafe.cast(path),
mode,
) )
for path in paths for path in paths
)) ))

Loading…
Cancel
Save