From 258e15d3f534e43117dccbd4169aad580201dee7 Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Fri, 6 Oct 2023 15:45:14 -0600 Subject: [PATCH] unexport DHCP: This should not be used outside this package. Signed-off-by: Jacob Weinstock --- internal/workflow/reconciler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/workflow/reconciler.go b/internal/workflow/reconciler.go index 25e4a988e..7995cde93 100644 --- a/internal/workflow/reconciler.go +++ b/internal/workflow/reconciler.go @@ -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 @@ -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