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:
committed by
Alena Prokharchyk
parent
a330cfb907
commit
c4f12c8b0d
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user