mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -07:00
Remove transport_test for some connection types (#28450)
So we are removing the transport_test for the listed connection types, because they fail to take into account bastion or proxy servers for testing the transport. The result of removing this, is that modules using this facility will do a complete round-trip attempt, running a module, which is a bit heavier but correct. This fixes #23774
This commit is contained in:
parent
bdba5982d2
commit
1afbe29642
3 changed files with 0 additions and 23 deletions
|
@ -260,13 +260,6 @@ class Connection(ConnectionBase):
|
|||
def _connect(self):
|
||||
return self
|
||||
|
||||
def transport_test(self, connect_timeout):
|
||||
''' Test the transport mechanism, if available '''
|
||||
port = int(self.port or 22)
|
||||
display.vvv("attempting transport test to %s:%s" % (self.host, port))
|
||||
sock = socket.create_connection((self.host, port), connect_timeout)
|
||||
sock.close()
|
||||
|
||||
@staticmethod
|
||||
def _create_control_path(host, port, user, connection=None):
|
||||
'''Make a hash for the controlpath based on con attributes'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue