mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Fix connect_timeout config varaible in netconf connection (#51055)
* Fetch connect_timeout value from get_options() instead of play_context
This commit is contained in:
@@ -314,7 +314,7 @@ class Connection(NetworkConnectionBase):
|
||||
look_for_keys=self.get_option('look_for_keys'),
|
||||
device_params=device_params,
|
||||
allow_agent=self._play_context.allow_agent,
|
||||
timeout=self._play_context.timeout,
|
||||
timeout=self.get_option('persistent_connect_timeout'),
|
||||
ssh_config=ssh_config
|
||||
)
|
||||
except SSHUnknownHostError as exc:
|
||||
|
||||
Reference in New Issue
Block a user