summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-08-01 08:44:39 -0400
committerGitHub <noreply@github.com>2018-08-01 08:44:39 -0400
commit9169daa3266f8d071d821ee9ac830da95ebf5152 (patch)
treeb26bfcc3328597fb5a8559696e09482ab1080bd8 /bin
parentc4591f08614f308779d1180b7c89bbd4c3ced7a3 (diff)
downloadansible-9169daa3266f8d071d821ee9ac830da95ebf5152.zip
\r does not round-trip the local socket, escape and restore on the other side (#43507)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-connection2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection
index 9b1ae2cd04..322ccc5a91 100755
--- a/bin/ansible-connection
+++ b/bin/ansible-connection
@@ -214,6 +214,8 @@ def main():
raise Exception("EOF found before vars data was complete")
vars_data += cur_line
cur_line = stdin.readline()
+ # restore escaped loose \r characters
+ vars_data = vars_data.replace(br'\r', b'\r')
if PY3:
pc_data = cPickle.loads(init_data, encoding='bytes')