ansible: Remove duplicate casts already done in Connection

This commit is contained in:
David Wilson 2018-04-05 02:55:17 +01:00
parent 6aeb4e9f05
commit d503956493
1 changed files with 3 additions and 3 deletions

View File

@ -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)