We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96729c0 commit 21b062cCopy full SHA for 21b062c
cmd/metal-api/internal/metal/machine.go
@@ -14,8 +14,9 @@ import (
14
15
"github.com/asaskevich/govalidator"
16
"github.com/dustin/go-humanize"
17
- mn "github.com/metal-stack/metal-lib/pkg/net"
18
"github.com/samber/lo"
+
19
+ mn "github.com/metal-stack/metal-lib/pkg/net"
20
)
21
22
// A MState is an enum which indicates the state of a machine
@@ -758,8 +759,8 @@ func (n NTPServers) Validate() error {
758
759
return nil
760
}
761
- if len(n) < 3 || len(n) > 5 {
762
- return errors.New("please specify a minimum of 3 and a maximum of 5 ntp servers")
+ if len(n) > 5 {
763
+ return errors.New("please specify a maximum of five ntp servers")
764
765
766
for _, ntpserver := range n {
0 commit comments