From bab8205b5ffd83bfbc4dd4b7ebd73164e2203338 Mon Sep 17 00:00:00 2001 From: galal-hussein Date: Mon, 11 Dec 2017 23:56:00 +0200 Subject: [PATCH] Fix SSH panic if key path doesn't exist --- hosts/dialer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/dialer.go b/hosts/dialer.go index 70f300ea..32f479c2 100644 --- a/hosts/dialer.go +++ b/hosts/dialer.go @@ -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 {