1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix python3 str <-> bytes in connection/persistent.py (#28224)

This commit is contained in:
Nathaniel Case 2017-08-15 11:36:20 -04:00 committed by GitHub
parent e287af1ac8
commit 20a35d0c1c

View file

@ -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')