From d503956493ec6429ce6e0331632cb70a405527bc Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 5 Apr 2018 02:55:17 +0100 Subject: [PATCH] ansible: Remove duplicate casts already done in Connection --- ansible_mitogen/mixins.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)