Skip to content

Commit

Permalink
Dont try to marshal passwordcallback
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Aug 8, 2022
1 parent f710eda commit a4cb572
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ import (

// SSH describes an SSH connection
type SSH struct {
Address string `yaml:"address" validate:"required,hostname|ip"`
User string `yaml:"user" validate:"required" default:"root"`
Port int `yaml:"port" default:"22" validate:"gt=0,lte=65535"`
KeyPath string `yaml:"keyPath" validate:"omitempty"`
HostKey string `yaml:"hostKey,omitempty"`
Bastion *SSH `yaml:"bastion,omitempty"`
PasswordCallback PasswordCallback
Address string `yaml:"address" validate:"required,hostname|ip"`
User string `yaml:"user" validate:"required" default:"root"`
Port int `yaml:"port" default:"22" validate:"gt=0,lte=65535"`
KeyPath string `yaml:"keyPath" validate:"omitempty"`
HostKey string `yaml:"hostKey,omitempty"`
Bastion *SSH `yaml:"bastion,omitempty"`
PasswordCallback PasswordCallback `yaml:"-"`
name string

isWindows bool
Expand Down

0 comments on commit a4cb572

Please sign in to comment.