diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index 2151e6b3..2cd9d30a 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -368,10 +368,10 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase): cmd = executable + ' -c ' + commands.mkarg(cmd) rc, stdout, stderr = self._connection.exec_command( - cmd=cast(cmd), - in_data=cast(in_data), + cmd=cmd, + in_data=in_data, sudoable=sudoable, - mitogen_chdir=cast(chdir), + mitogen_chdir=chdir, ) stdout_text = to_text(stdout, errors=encoding_errors)