From 4e159284455281da15e1e23cd4968df69e61537b Mon Sep 17 00:00:00 2001 From: Oriol Date: Tue, 7 Jan 2025 15:03:08 +0100 Subject: [PATCH] chore: Correct dnsSubDomain value sent in the API request when empty in the configuration (#2925) --- internal/service/streamprivatelinkendpoint/model.go | 1 - internal/service/streamprivatelinkendpoint/model_test.go | 1 - 2 files changed, 2 deletions(-) diff --git a/internal/service/streamprivatelinkendpoint/model.go b/internal/service/streamprivatelinkendpoint/model.go index 2659a92637..2cd4ec1153 100644 --- a/internal/service/streamprivatelinkendpoint/model.go +++ b/internal/service/streamprivatelinkendpoint/model.go @@ -56,7 +56,6 @@ func NewAtlasReq(ctx context.Context, plan *TFModel) (*admin.StreamsPrivateLinkC result := &admin.StreamsPrivateLinkConnection{ DnsDomain: plan.DnsDomain.ValueStringPointer(), - DnsSubDomain: &[]string{}, Provider: plan.Provider.ValueStringPointer(), Region: plan.Region.ValueStringPointer(), ServiceEndpointId: plan.ServiceEndpointId.ValueStringPointer(), diff --git a/internal/service/streamprivatelinkendpoint/model_test.go b/internal/service/streamprivatelinkendpoint/model_test.go index 44bf859fe2..59c2a468a3 100644 --- a/internal/service/streamprivatelinkendpoint/model_test.go +++ b/internal/service/streamprivatelinkendpoint/model_test.go @@ -153,7 +153,6 @@ func TestStreamPrivatelinkEndpointTFModelToSDK(t *testing.T) { }, expectedSDKReq: &admin.StreamsPrivateLinkConnection{ DnsDomain: &dnsDomain, - DnsSubDomain: &[]string{}, Provider: &provider, Region: ®ion, ServiceEndpointId: &serviceEndpointID,