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 616001f commit d1a1a01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/metal-api/internal/service/partition-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ func (r *partitionResource) updatePartition(request *restful.Request, response *
}

if requestPayload.DNSServers != nil {
newPartition.DNSServers = metal.DNSServers{}
for _, s := range requestPayload.DNSServers {
newPartition.DNSServers = append(newPartition.DNSServers, metal.DNSServer{
IP: s.IP,
Expand All @@ -342,6 +343,7 @@ func (r *partitionResource) updatePartition(request *restful.Request, response *
}

if requestPayload.NTPServers != nil {
newPartition.NTPServers = metal.NTPServers{}
for _, s := range requestPayload.NTPServers {
newPartition.NTPServers = append(newPartition.NTPServers, metal.NTPServer{
Address: s.Address,
Expand Down

0 comments on commit d1a1a01

Please sign in to comment.