mirror of
https://github.com/rancher/rke.git
synced 2025-08-11 03:32:45 +00:00
Fix SSH panic if key path doesn't exist
This commit is contained in:
parent
ead2709100
commit
bab8205b5f
@ -143,7 +143,7 @@ func checkEncryptedKey(sshKey, sshKeyPath string) (ssh.Signer, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return key, nil
|
return key, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func privateKeyPath(sshKeyPath string) string {
|
func privateKeyPath(sshKeyPath string) string {
|
||||||
|
Loading…
Reference in New Issue
Block a user