Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattes83 committed Aug 28, 2024
1 parent 76bd54b commit a62b645
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/service/cloud/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ func (s *Service) buildServerEntities(ms *scope.Machine, params serverEntityPara
Properties: &sdk.NicProperties{
Lan: &params.lanID,
Name: ptr.To(s.nicName(ms.IonosMachine)),
Dhcp: ptr.To(true),
},
}

Expand All @@ -425,8 +426,6 @@ func (s *Service) buildServerEntities(ms *scope.Machine, params serverEntityPara
primaryNIC.Properties.Ipv6Ips = ptr.To(nicInfo.IPv6Addresses)
}

primaryNIC.Properties.Dhcp = ptr.To(true)

// In case we want to retrieve a public IP from the DHCP, we need to
// create a NIC with empty IP addresses and patch the NIC afterward.
// To simplify the code we also follow this approach when using IP pools.
Expand Down Expand Up @@ -454,8 +453,6 @@ func (s *Service) buildServerEntities(ms *scope.Machine, params serverEntityPara
nic.Properties.Ipv6Ips = ptr.To(nicInfo.IPv6Addresses)
}

nic.Properties.Dhcp = ptr.To(true)

items = append(items, nic)
}

Expand Down

0 comments on commit a62b645

Please sign in to comment.