diff options
author | Sam Doran <sdoran@redhat.com> | 2021-04-29 15:11:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 15:11:02 -0400 |
commit | 74b2add460f25b83ae728b06e50d06321a2a9b79 (patch) | |
tree | 20cc08f5665293bb551ea754a5f1a7ed98e53775 /lib/ansible/plugins | |
parent | 98495ae99db581e8707177169f54c0d5204ba6d2 (diff) | |
download | ansible-74b2add460f25b83ae728b06e50d06321a2a9b79.tar.gz |
paramiko_ssh - mark connection as connected when successful (#74459)
* Remove unused import from test
Diffstat (limited to 'lib/ansible/plugins')
-rw-r--r-- | lib/ansible/plugins/connection/paramiko_ssh.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/plugins/connection/paramiko_ssh.py b/lib/ansible/plugins/connection/paramiko_ssh.py index 20d926beb8..45f23b4ae1 100644 --- a/lib/ansible/plugins/connection/paramiko_ssh.py +++ b/lib/ansible/plugins/connection/paramiko_ssh.py @@ -241,6 +241,8 @@ class Connection(ConnectionBase): self.ssh = SSH_CONNECTION_CACHE[cache_key] else: self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached() + + self._connected = True return self def _set_log_channel(self, name): |