Skip to content

Commit

Permalink
Merge pull request #997 from Juniper/983-does-the-ip-link-ct-primitiv…
Browse files Browse the repository at this point in the history
…e-data-source-need-a-apstraclient

Remove `*apstra.Client` from `dataSourceDatacenterCtIpLink{}`
  • Loading branch information
chrismarget-j authored Dec 20, 2024
2 parents bd03e0f + bf4f68d commit f802a99
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions apstra/data_source_datacenter_ct_ip_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ package tfapstra
import (
"context"

"github.com/Juniper/apstra-go-sdk/apstra"
connectivitytemplate "github.com/Juniper/terraform-provider-apstra/apstra/connectivity_template"
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
"github.com/hashicorp/terraform-plugin-framework/types"
)

var _ datasourceWithSetClient = &dataSourceDatacenterCtIpLink{}

type dataSourceDatacenterCtIpLink struct {
client *apstra.Client
}
type dataSourceDatacenterCtIpLink struct{}

func (o *dataSourceDatacenterCtIpLink) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_datacenter_ct_ip_link"
Expand Down Expand Up @@ -55,7 +50,3 @@ func (o *dataSourceDatacenterCtIpLink) Read(ctx context.Context, req datasource.
// set state
resp.Diagnostics.Append(resp.State.Set(ctx, &config)...)
}

func (o *dataSourceDatacenterCtIpLink) setClient(client *apstra.Client) {
o.client = client
}

0 comments on commit f802a99

Please sign in to comment.