Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Nov 8, 2024
1 parent 5f71f78 commit d01ce2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/metal-api/internal/metal/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ func DisabledIPMISuperUser() MachineIPMISuperUser {
}

func (d DNSServers) Validate() error {
if d == nil {
if len(d) == 0 {
return nil
}

Expand All @@ -754,7 +754,7 @@ func (d DNSServers) Validate() error {
}

func (n NTPServers) Validate() error {
if n == nil {
if len(n) == 0 {
return nil
}

Expand Down

0 comments on commit d01ce2d

Please sign in to comment.