Skip to content

Commit

Permalink
unexport DHCP:
Browse files Browse the repository at this point in the history
This should not be used outside this package.

Signed-off-by: Jacob Weinstock <[email protected]>
  • Loading branch information
jacobweinstock committed Oct 9, 2023
1 parent cc88722 commit a75c59c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/workflow/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ type templateHardwareData struct {
type netInterface struct {
MAC string
VLANID string
DHCP DHCP
DHCP dhcp
}

type DHCP struct {
type dhcp struct {
IP string
Netmask string
Gateway string
Expand All @@ -165,7 +165,7 @@ func toNetworkInterface(h []v1alpha1.Interface) []netInterface {
ni := []netInterface{}
for _, i := range h {
if i.DHCP != nil {
v := netInterface{DHCP: DHCP{}}
v := netInterface{DHCP: dhcp{}}
v.MAC = i.DHCP.MAC
if i.DHCP.IP != nil {
v.DHCP.IP = i.DHCP.IP.Address
Expand Down

0 comments on commit a75c59c

Please sign in to comment.