mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Fix reconstructing socket path in network_cli (#33572)
* Persistent connection socket path is hash of remote address, port, remote user and connection type. * Integration test fixes
This commit is contained in:
parent
6654d69569
commit
399e72abb0
3 changed files with 5 additions and 2 deletions
|
@ -216,7 +216,7 @@ class Connection(ConnectionBase):
|
|||
value to None and the _connected value to False
|
||||
'''
|
||||
ssh = connection_loader.get('ssh', class_only=True)
|
||||
cp = ssh._create_control_path(self._play_context.remote_addr, self._play_context.port, self._play_context.remote_user)
|
||||
cp = ssh._create_control_path(self._play_context.remote_addr, self._play_context.port, self._play_context.remote_user, self._play_context.connection)
|
||||
|
||||
tmp_path = unfrackpath(C.PERSISTENT_CONTROL_PATH_DIR)
|
||||
socket_path = unfrackpath(cp % dict(directory=tmp_path))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue