Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Dec 18, 2024
1 parent e1cac57 commit 9dcf94d
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -147,7 +147,7 @@ func (o *ConnectivityTemplateInterface) LoadApiData(ctx context.Context, in *aps
}

func (o *ConnectivityTemplateInterface) LoadPrimitiveIds(ctx context.Context, in *apstra.ConnectivityTemplate, diags *diag.Diagnostics) {
o.IpLinks = primitives.LoadIDsIntoCustomStaticRouteMap(ctx, in.Subpolicies, o.IpLinks, diags)
o.IpLinks = primitives.LoadIDsIntoIpLinkMap(ctx, in.Subpolicies, o.IpLinks, diags)
o.RoutingZoneConstraints = primitives.LoadIDsIntoRoutingZoneConstraintMap(ctx, in.Subpolicies, o.RoutingZoneConstraints, diags)
o.VirtualNetworkMultiples = primitives.LoadIDsIntoVirtualNetworkMultipleMap(ctx, in.Subpolicies, o.VirtualNetworkMultiples, diags)
o.VirtualNetworkSingles = primitives.LoadIDsIntoVirtualNetworkSingleMap(ctx, in.Subpolicies, o.VirtualNetworkSingles, diags)
Original file line number Diff line number Diff line change
@@ -281,7 +281,7 @@ func IpLinkPrimitivesFromSubpolicies(ctx context.Context, subpolicies []*apstra.
return utils.MapValueOrNull(ctx, types.ObjectType{AttrTypes: IpLink{}.AttrTypes()}, result, diags)
}

func LoadIDsIntoCustomIpLinkMap(ctx context.Context, subpolicies []*apstra.ConnectivityTemplatePrimitive, inMap types.Map, diags *diag.Diagnostics) types.Map {
func LoadIDsIntoIpLinkMap(ctx context.Context, subpolicies []*apstra.ConnectivityTemplatePrimitive, inMap types.Map, diags *diag.Diagnostics) types.Map {
result := make(map[string]IpLink, len(inMap.Elements()))
inMap.ElementsAs(ctx, &result, false)
if diags.HasError() {

0 comments on commit 9dcf94d

Please sign in to comment.