mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41:25 -07:00
\r does not round-trip the local socket, escape and restore on the other side (#43507)
This commit is contained in:
parent
c4591f0861
commit
9169daa326
2 changed files with 4 additions and 0 deletions
|
@ -936,6 +936,8 @@ class TaskExecutor:
|
|||
stdin.write(b'\n#END_INIT#\n')
|
||||
|
||||
src = cPickle.dumps(variables, protocol=0)
|
||||
# remaining \r fail to round-trip the socket
|
||||
src = src.replace(b'\r', br'\r')
|
||||
stdin.write(src)
|
||||
stdin.write(b'\n#END_VARS#\n')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue