1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-26 07:25:09 +00:00

Merge pull request #133 from galal-hussein/fix_ssh_panic

Fix SSH panic if key path doesn't exist
This commit is contained in:
Alena Prokharchyk
2017-12-11 14:02:39 -08:00
committed by GitHub

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 {