mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
\r does not round-trip the local socket, escape and restore on the other side (#43507)
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user