We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 04fe872 + 135a2d6 commit d11375aCopy full SHA for d11375a
pkg/clustermanager/ssh_communicator.go
@@ -10,7 +10,6 @@ import (
10
"os"
11
"path"
12
"strings"
13
- "syscall"
14
"time"
15
16
"golang.org/x/crypto/ssh"
@@ -228,7 +227,10 @@ func (sshComm *SSHCommunicator) CapturePassphrase(sshKeyName string) error {
228
227
}
229
230
fmt.Print("Enter passphrase for SSH key " + privateKey.PrivateKeyPath + ": ")
231
- 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
232
+ // casting on most of the architecture we support.
233
+ text, err := terminal.ReadPassword(0)
234
235
if err != nil {
236
return err
0 commit comments