mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Transform the command we pass to subprocess into a byte string in _low_level-exec_command
This commit is contained in:
@@ -487,7 +487,8 @@ class ActionBase(with_metaclass(ABCMeta, object)):
|
||||
verbatim, then this won't work. May have to use some sort of
|
||||
replacement strategy (python3 could use surrogateescape)
|
||||
'''
|
||||
|
||||
# We may need to revisit this later.
|
||||
cmd = to_bytes(cmd, errors='strict')
|
||||
if executable is not None:
|
||||
cmd = executable + ' -c ' + cmd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user