Skip to content

Commit

Permalink
Omit empty bastion from yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kke committed Apr 20, 2021
1 parent 6b60b02 commit b8484ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type SSH struct {
Port int `yaml:"port" default:"22" validate:"gt=0,lte=65535"`
KeyPath string `yaml:"keyPath" validate:"omitempty"`
HostKey string `yaml:"hostKey,omitempty"`
Bastion *SSH
Bastion *SSH `yaml:"bastion,omitempty"`

name string

Expand Down
2 changes: 1 addition & 1 deletion winrm.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type WinRM struct {
CertPath string `yaml:"certPath,omitempty" validate:"omitempty,file"`
KeyPath string `yaml:"keyPath,omitempty" validate:"omitempty,file"`
TLSServerName string `yaml:"tlsServerName,omitempty" validate:"omitempty,hostname|ip"`
Bastion *SSH `yaml:"bastion"`
Bastion *SSH `yaml:"bastion,omitempty"`

name string

Expand Down

0 comments on commit b8484ff

Please sign in to comment.