Skip to content

Commit

Permalink
chore: fix delete calls for VLANs
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Jul 1, 2024
1 parent 696bebf commit 45e045e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/vlan/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (c *Client) Delete() *cobra.Command {
)

deleteVnet := func(id string) error {
_, _, err := c.Service.DeleteVirtualNetwork(context.Background(), vnetID).Execute()
_, err := c.Service.DeleteVirtualNetwork(context.Background(), vnetID).Execute()
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion test/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func CreateTestVlanWithVxLan(t *testing.T, projectId string, Id int, desc string
func CleanTestVlan(t *testing.T, vlanId string) {
t.Helper()
TestApiClient := TestClient()
_, resp, err := TestApiClient.VLANsApi.DeleteVirtualNetwork(context.Background(), vlanId).Execute()
resp, err := TestApiClient.VLANsApi.DeleteVirtualNetwork(context.Background(), vlanId).Execute()
if err != nil && resp.StatusCode != http.StatusNotFound {
t.Fatalf("Error when calling `VLANsApi.DeleteVirtualNetwork`` for %v: %v\n", vlanId, err)
}
Expand Down

0 comments on commit 45e045e

Please sign in to comment.