From 20a35d0c1cfda3cae6992938cff5074215b983f5 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Tue, 15 Aug 2017 11:36:20 -0400 Subject: [PATCH] Fix python3 str <-> bytes in connection/persistent.py (#28224) --- lib/ansible/plugins/connection/persistent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/connection/persistent.py b/lib/ansible/plugins/connection/persistent.py index 54177e95ba..9cad2d5604 100644 --- a/lib/ansible/plugins/connection/persistent.py +++ b/lib/ansible/plugins/connection/persistent.py @@ -92,7 +92,7 @@ class Connection(ConnectionBase): """ socket_path = None rc, out, err = self._do_it('RUN:') - match = re.search(r"#SOCKET_PATH#: (\S+)", out) + match = re.search(br"#SOCKET_PATH#: (\S+)", out) if match: socket_path = to_text(match.group(1).strip(), errors='surrogate_or_strict')