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:
parent
e287af1ac8
commit
20a35d0c1c
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue