@@ -145,7 +145,7 @@ def _connect_ssh(spec):
145145 'identity_file' : private_key_file ,
146146 'identities_only' : False ,
147147 'ssh_path' : spec .ssh_executable (),
148- 'connect_timeout' : spec .ansible_ssh_timeout (),
148+ 'connect_timeout' : spec .timeout (),
149149 'ssh_args' : spec .ssh_args (),
150150 'ssh_debug_level' : spec .mitogen_ssh_debug_level (),
151151 'remote_name' : get_remote_name (spec ),
@@ -169,7 +169,7 @@ def _connect_buildah(spec):
169169 'username' : spec .remote_user (),
170170 'container' : spec .remote_addr (),
171171 'python_path' : spec .python_path (),
172- 'connect_timeout' : spec .ansible_ssh_timeout () or spec . timeout (),
172+ 'connect_timeout' : spec .timeout (),
173173 'remote_name' : get_remote_name (spec ),
174174 }
175175 }
@@ -185,7 +185,7 @@ def _connect_docker(spec):
185185 'username' : spec .remote_user (),
186186 'container' : spec .remote_addr (),
187187 'python_path' : spec .python_path (rediscover_python = True ),
188- 'connect_timeout' : spec .ansible_ssh_timeout () or spec . timeout (),
188+ 'connect_timeout' : spec .timeout (),
189189 'remote_name' : get_remote_name (spec ),
190190 }
191191 }
@@ -200,7 +200,7 @@ def _connect_kubectl(spec):
200200 'kwargs' : {
201201 'pod' : spec .remote_addr (),
202202 'python_path' : spec .python_path (),
203- 'connect_timeout' : spec .ansible_ssh_timeout () or spec . timeout (),
203+ 'connect_timeout' : spec .timeout (),
204204 'kubectl_path' : spec .mitogen_kubectl_path (),
205205 'kubectl_args' : spec .extra_args (),
206206 'remote_name' : get_remote_name (spec ),
@@ -218,7 +218,7 @@ def _connect_jail(spec):
218218 'username' : spec .remote_user (),
219219 'container' : spec .remote_addr (),
220220 'python_path' : spec .python_path (),
221- 'connect_timeout' : spec .ansible_ssh_timeout () or spec . timeout (),
221+ 'connect_timeout' : spec .timeout (),
222222 'remote_name' : get_remote_name (spec ),
223223 }
224224 }
@@ -234,7 +234,7 @@ def _connect_lxc(spec):
234234 'container' : spec .remote_addr (),
235235 'python_path' : spec .python_path (),
236236 'lxc_attach_path' : spec .mitogen_lxc_attach_path (),
237- 'connect_timeout' : spec .ansible_ssh_timeout () or spec . timeout (),
237+ 'connect_timeout' : spec .timeout (),
238238 'remote_name' : get_remote_name (spec ),
239239 }
240240 }
@@ -250,7 +250,7 @@ def _connect_lxd(spec):
250250 'container' : spec .remote_addr (),
251251 'python_path' : spec .python_path (),
252252 'lxc_path' : spec .mitogen_lxc_path (),
253- 'connect_timeout' : spec .ansible_ssh_timeout () or spec . timeout (),
253+ 'connect_timeout' : spec .timeout (),
254254 'remote_name' : get_remote_name (spec ),
255255 }
256256 }
@@ -273,7 +273,7 @@ def _connect_podman(spec):
273273 'username' : spec .remote_user (),
274274 'container' : spec .remote_addr (),
275275 'python_path' : spec .python_path (rediscover_python = True ),
276- 'connect_timeout' : spec .ansible_ssh_timeout () or spec . timeout (),
276+ 'connect_timeout' : spec .timeout (),
277277 'remote_name' : get_remote_name (spec ),
278278 }
279279 }
0 commit comments