Skip to content

Commit

Permalink
include virtual_networks in VLAN delete so the VLAN IDs are available…
Browse files Browse the repository at this point in the history
… in the response
  • Loading branch information
ctreatma committed Jul 5, 2024
1 parent deeae93 commit f057498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resources/metal/vlan/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (r *Resource) Delete(ctx context.Context, request resource.DeleteRequest, r

vlan, resp, err := client.ProjectVirtualNetworks.Get(
data.ID.ValueString(),
&packngo.GetOptions{Includes: []string{"instances", "meta_gateway"}},
&packngo.GetOptions{Includes: []string{"instances", "virtual_networks", "meta_gateway"}},
)
if err != nil {
if equinix_errors.IgnoreResponseErrors(equinix_errors.HttpForbidden, equinix_errors.HttpNotFound)(resp, err) != nil {
Expand Down

0 comments on commit f057498

Please sign in to comment.