cmd/puppeth: fix unconvert linter error

This commit is contained in:
Péter Szilágyi 2017-11-12 22:03:27 +02:00 committed by GitHub
parent 89aa3e2102
commit cf0172022a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,8 +83,7 @@ func dial(server string, pubkey []byte) (*sshClient, error) {
if err != nil { if err != nil {
log.Warn("Couldn't read password", "err", err) log.Warn("Couldn't read password", "err", err)
} }
key, err := ssh.ParsePrivateKeyWithPassphrase(buf, blob)
key, err := ssh.ParsePrivateKeyWithPassphrase(buf, []byte(blob))
if err != nil { if err != nil {
log.Warn("Failed to decrypt SSH key, falling back to passwords", "path", path, "err", err) log.Warn("Failed to decrypt SSH key, falling back to passwords", "path", path, "err", err)
} else { } else {