1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Revert "Transform the command we pass to subprocess into a byte string in _low_level-exec_command"

This reverts commit 0c013f592a.

Going to do this in the connection plugin
This commit is contained in:
Toshio Kuratomi 2015-12-22 11:12:41 -08:00
parent 1ed3a018eb
commit 8d57ffd16b

View file

@ -488,8 +488,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
verbatim, then this won't work. May have to use some sort of verbatim, then this won't work. May have to use some sort of
replacement strategy (python3 could use surrogateescape) replacement strategy (python3 could use surrogateescape)
''' '''
# We may need to revisit this later.
cmd = to_bytes(cmd, errors='strict')
if executable is not None: if executable is not None:
cmd = executable + ' -c ' + cmd cmd = executable + ' -c ' + cmd