Skip to content

Commit

Permalink
Allow usernames shorter than 3 characters (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
kke authored Jun 16, 2021
1 parent 6b52e02 commit 87d80c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
// SSH describes an SSH connection
type SSH struct {
Address string `yaml:"address" validate:"required,hostname|ip"`
User string `yaml:"user" validate:"omitempty,gt=2" default:"root"`
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"`
Expand Down

0 comments on commit 87d80c1

Please sign in to comment.