Skip to content

Commit

Permalink
need empty list on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Oct 28, 2024
1 parent 911a67d commit d139d66
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions ipyparallel/tests/test_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,18 @@ def ssh_config(ssh_key, request):
c.Cluster.controller_ip = '0.0.0.0'
c.Cluster.engine_launcher_class = request.param
engine_set_cfg = c[f"{request.param}EngineSetLauncher"]
engine_set_cfg.ssh_args = []
if not windows:
engine_set_cfg.ssh_args = [
"-o",
"UserKnownHostsFile=/dev/null",
"-o",
"StrictHostKeyChecking=no",
"-i",
ssh_key,
]
engine_set_cfg.ssh_args.extend(
[
"-o",
"UserKnownHostsFile=/dev/null",
"-o",
"StrictHostKeyChecking=no",
"-i",
ssh_key,
]
)
engine_set_cfg.scp_args = list(engine_set_cfg.ssh_args) # copy
if windows:
engine_set_cfg.remote_python = "python"
Expand Down

0 comments on commit d139d66

Please sign in to comment.