Skip to content

Commit

Permalink
converting to in syscall.Stdin calls (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabo1208 authored Feb 27, 2023
1 parent 46004dc commit bd8812c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/vsphere/pkg/command/auth/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ func readPassword(cmd *cobra.Command, options *Options) (string, error) {
if !options.PasswordStdIn {
return options.Password, nil
}
if term.IsTerminal(syscall.Stdin) {
if term.IsTerminal(int(syscall.Stdin)) {
cmd.Println("Password:")
password, err := term.ReadPassword(syscall.Stdin)
password, err := term.ReadPassword(int(syscall.Stdin))
cmd.Println()
return string(password), err
}
Expand Down

0 comments on commit bd8812c

Please sign in to comment.