diff --git a/go.mod b/go.mod index a3b43458..16a2748a 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/equinix/metal-cli go 1.22 require ( - github.com/equinix/equinix-sdk-go v0.39.1 + github.com/equinix/equinix-sdk-go v0.42.0 github.com/olekukonko/tablewriter v0.0.5 github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.8.0 diff --git a/go.sum b/go.sum index fd16523e..fe418135 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/equinix/equinix-sdk-go v0.39.1 h1:UyiNYqlK+Hn1W8DTjM3bp25Zzq8ITQHodhLhU6MZHqQ= -github.com/equinix/equinix-sdk-go v0.39.1/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg= +github.com/equinix/equinix-sdk-go v0.42.0 h1:jjgdFs0rx6nOwsu/dLh6ImopD0M1Rn7QIn9ZSMWzWUc= +github.com/equinix/equinix-sdk-go v0.42.0/go.mod h1:hEb3XLaedz7xhl/dpPIS6eOIiXNPeqNiVoyDrT6paIg= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= diff --git a/internal/vlan/delete.go b/internal/vlan/delete.go index 2551332a..b622120f 100644 --- a/internal/vlan/delete.go +++ b/internal/vlan/delete.go @@ -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 } diff --git a/test/helper/helper.go b/test/helper/helper.go index 0e81dbc0..7b7ff1a2 100644 --- a/test/helper/helper.go +++ b/test/helper/helper.go @@ -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) }