Skip to content

Commit f802a99

Browse files
Merge pull request #997 from Juniper/983-does-the-ip-link-ct-primitive-data-source-need-a-apstraclient
Remove `*apstra.Client` from `dataSourceDatacenterCtIpLink{}`
2 parents bd03e0f + bf4f68d commit f802a99

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

apstra/data_source_datacenter_ct_ip_link.go

+1-10
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@ package tfapstra
33
import (
44
"context"
55

6-
"github.com/Juniper/apstra-go-sdk/apstra"
76
connectivitytemplate "github.com/Juniper/terraform-provider-apstra/apstra/connectivity_template"
87
"github.com/hashicorp/terraform-plugin-framework/datasource"
98
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
109
"github.com/hashicorp/terraform-plugin-framework/types"
1110
)
1211

13-
var _ datasourceWithSetClient = &dataSourceDatacenterCtIpLink{}
14-
15-
type dataSourceDatacenterCtIpLink struct {
16-
client *apstra.Client
17-
}
12+
type dataSourceDatacenterCtIpLink struct{}
1813

1914
func (o *dataSourceDatacenterCtIpLink) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
2015
resp.TypeName = req.ProviderTypeName + "_datacenter_ct_ip_link"
@@ -55,7 +50,3 @@ func (o *dataSourceDatacenterCtIpLink) Read(ctx context.Context, req datasource.
5550
// set state
5651
resp.Diagnostics.Append(resp.State.Set(ctx, &config)...)
5752
}
58-
59-
func (o *dataSourceDatacenterCtIpLink) setClient(client *apstra.Client) {
60-
o.client = client
61-
}

0 commit comments

Comments
 (0)