From bf4f68dfdd7137cf0e5b0bbeae8562a6eef6e524 Mon Sep 17 00:00:00 2001 From: Chris Marget Date: Tue, 17 Dec 2024 12:05:29 -0500 Subject: [PATCH] remove `*apstra.Client` from `dataSourceDatacenterCtIpLink{}` --- apstra/data_source_datacenter_ct_ip_link.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/apstra/data_source_datacenter_ct_ip_link.go b/apstra/data_source_datacenter_ct_ip_link.go index 600d1e52..5e586a1a 100644 --- a/apstra/data_source_datacenter_ct_ip_link.go +++ b/apstra/data_source_datacenter_ct_ip_link.go @@ -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" @@ -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 -}