mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix python3 str <-> bytes in connection/persistent.py (#28224)
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user