Skip to content

Commit 6c594a5

Browse files
In EC2 backend, create .ssh directory if it does not exist
1 parent 63c498c commit 6c594a5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/cluster_providers/ec2/ec2_backend.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ function ec2_set_up_ssh_connection(cluster_name)
173173

174174
internal_key_name = cluster_name
175175

176+
if !isdir(joinpath(homedir(),".ssh"))
177+
mkdir(joinpath(homedir(),".ssh"))
178+
end
179+
176180
keypath = joinpath(homedir(), ".ssh", "$internal_key_name.key")
177181
pubpath = joinpath(homedir(), ".ssh", "$internal_key_name.key.pub")
178182

src/deploy.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ function cluster_deploy(contract_handle, config_args...)
5858
try
5959
pids = cluster_deploy(cluster_type, cluster_handle, cluster_features, instance_type)
6060
catch e
61-
@info isa(e, RemoteException)
62-
@info e.captured.ex
63-
@info e.captured.ex.msg
6461
if isa(e, RemoteException) && isa(e.captured.ex, ErrorException) && e.captured.ex.msg == "Only process 1 can add and remove workers"
6562
@error "MW clusters are not supported."
6663
@info "To support MW clusters, the extended version of Distributed.jl must be installed in the cluster's entry node. See the README or documentation."

0 commit comments

Comments
 (0)