diff options
author | Nathaniel Case <this.is@nathanielca.se> | 2018-08-01 08:44:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 08:44:39 -0400 |
commit | 9169daa3266f8d071d821ee9ac830da95ebf5152 (patch) | |
tree | b26bfcc3328597fb5a8559696e09482ab1080bd8 /bin | |
parent | c4591f08614f308779d1180b7c89bbd4c3ced7a3 (diff) | |
download | ansible-9169daa3266f8d071d821ee9ac830da95ebf5152.tar.gz |
\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') |