Skip to content

Commit

Permalink
Merge pull request #244 from mavimo/fix-issue-on-build-windows-archit…
Browse files Browse the repository at this point in the history
…ecture

fix build on windows architecture
  • Loading branch information
xetys authored Jan 29, 2019
2 parents 04fe872 + 135a2d6 commit d11375a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/clustermanager/ssh_communicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"os"
"path"
"strings"
"syscall"
"time"

"golang.org/x/crypto/ssh"
Expand Down Expand Up @@ -228,7 +227,10 @@ func (sshComm *SSHCommunicator) CapturePassphrase(sshKeyName string) error {
}

fmt.Print("Enter passphrase for SSH key " + privateKey.PrivateKeyPath + ": ")
text, err := terminal.ReadPassword(syscall.Stdin)
// Should be syscall.Stdin but on window architecture the build fail since is
// not an integer value. Casting the syscall.Stdin to int complain on unrequired
// casting on most of the architecture we support.
text, err := terminal.ReadPassword(0)

if err != nil {
return err
Expand Down

0 comments on commit d11375a

Please sign in to comment.