Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Oct 13, 2024
1 parent d51cfc2 commit d90f7b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apstra/blueprint/datacenter_virtual_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func (o *DatacenterVirtualNetwork) Request(ctx context.Context, diags *diag.Diag
// Exactly one binding is required when type==vlan.
// Apstra requires vlan == vni when creating a "vlan" type VN.
// VNI attribute is forbidden when type == VLAN
if len(vnBindings) > 0 && vnBindings[0].VlanId != nil { //todo is this right?
if len(vnBindings) > 0 && vnBindings[0].VlanId != nil { // todo is this right?
v := apstra.VNI(*vnBindings[0].VlanId)
vnId = &v
}
Expand Down
6 changes: 3 additions & 3 deletions apstra/resource_datacenter_virtual_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ func TestAccDatacenterVirtualNetwork(t *testing.T) {
client := testutils.GetTestClient(t, ctx)
apiVersion := version.Must(version.NewVersion(client.ApiVersion()))

//bp, err := client.NewTwoStageL3ClosClient(ctx, "ab4468ce-c007-441c-876c-5cec6566496b")
//szId := apstra.ObjectId("H0NOxllV2AQ2qRroxA")
//Create blueprint and routing zone
// bp, err := client.NewTwoStageL3ClosClient(ctx, "ab4468ce-c007-441c-876c-5cec6566496b")
// szId := apstra.ObjectId("H0NOxllV2AQ2qRroxA")
// Create blueprint and routing zone
bp := testutils.BlueprintC(t, ctx)
szId := testutils.SecurityZoneA(t, ctx, bp, true)

Expand Down

0 comments on commit d90f7b2

Please sign in to comment.