1
0
mirror of https://github.com/rancher/rke.git synced 2025-05-10 01:15:43 +00:00

Fix SSH panic if key path doesn't exist

This commit is contained in:
galal-hussein 2017-12-11 23:56:00 +02:00
parent ead2709100
commit bab8205b5f

View File

@ -143,7 +143,7 @@ func checkEncryptedKey(sshKey, sshKeyPath string) (ssh.Signer, error) {
return nil, err
}
}
return key, nil
return key, err
}
func privateKeyPath(sshKeyPath string) string {