1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 06:56:29 +00:00

Better error when ssh_key_path can't be opened

This commit is contained in:
Sebastiaan van Steenis
2018-06-25 21:01:02 +02:00
committed by Alena Prokharchyk
parent a330cfb907
commit c4f12c8b0d
3 changed files with 30 additions and 13 deletions

View File

@@ -195,7 +195,11 @@ func ParseCluster(
// Create k8s wrap transport for bastion host
if len(c.BastionHost.Address) > 0 {
c.K8sWrapTransport = hosts.BastionHostWrapTransport(c.BastionHost)
var err error
c.K8sWrapTransport, err = hosts.BastionHostWrapTransport(c.BastionHost)
if err != nil {
return nil, err
}
}
return c, nil
}