diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2018-08-01 14:44:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 14:44:39 +0200 |
commit | 9169daa3266f8d071d821ee9ac830da95ebf5152 (patch) | |
tree | b26bfcc3328597fb5a8559696e09482ab1080bd8 /bin | |
parent | Leading dot in efs_facts.mountpoint (#35909) (diff) | |
download | ansible-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-x | bin/ansible-connection | 2 |
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') |