Skip to content

Commit

Permalink
NSOF-7292 ip_networks: remove "expand" query parameter
Browse files Browse the repository at this point in the history
ip_networks GET API no longer supports this parameter.
  • Loading branch information
ebirger committed Feb 26, 2023
1 parent e6cab15 commit 09e8070
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/client/ip_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
u "net/url"
)

const IPNetworksEndpoint = "v1/ip_networks"
Expand Down Expand Up @@ -65,7 +64,7 @@ func UpdateIPNetwork(ctx context.Context, c *Client, inId string, in *IPNetwork)

func GetIPNetwork(ctx context.Context, c *Client, inId string) (*IPNetwork, error) {
url := fmt.Sprintf("%s/%s/%s", c.BaseURL, IPNetworksEndpoint, inId)
resp, err := c.Get(ctx, url, u.Values{"expand": {"true"}})
resp, err := c.Get(ctx, url, nil)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 09e8070

Please sign in to comment.