summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-08-01 14:44:39 +0200
committerGitHub <noreply@github.com>2018-08-01 14:44:39 +0200
commit9169daa3266f8d071d821ee9ac830da95ebf5152 (patch)
treeb26bfcc3328597fb5a8559696e09482ab1080bd8 /bin
parentLeading dot in efs_facts.mountpoint (#35909) (diff)
downloadansible-9169daa3266f8d071d821ee9ac830da95ebf5152.tar.xz
ansible-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')