summaryrefslogtreecommitdiff
path: root/lib/ansible/plugins
diff options
context:
space:
mode:
authorSam Doran <sdoran@redhat.com>2021-04-29 15:11:02 -0400
committerGitHub <noreply@github.com>2021-04-29 15:11:02 -0400
commit74b2add460f25b83ae728b06e50d06321a2a9b79 (patch)
tree20cc08f5665293bb551ea754a5f1a7ed98e53775 /lib/ansible/plugins
parent98495ae99db581e8707177169f54c0d5204ba6d2 (diff)
downloadansible-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.py2
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):