From 82461c0bde7ec5235d594a6dd5bdcc25cb00edd8 Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Fri, 8 Nov 2024 16:16:06 -0800 Subject: [PATCH 1/2] Deprecate WithPlanResourceChange --- provider/resources.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/provider/resources.go b/provider/resources.go index f87f9473..10701b87 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -112,8 +112,7 @@ func always[T any](T) bool { return true } // Provider returns additional overlaid schema and metadata associated with the provider.. func Provider() tfbridge.ProviderInfo { // Instantiate the Terraform provider - p := shimv2.NewProvider(newrelic.Provider(), - shimv2.WithPlanResourceChange(always)) + p := shimv2.NewProvider(newrelic.Provider()) // Create a Pulumi provider mapping prov := tfbridge.ProviderInfo{ From 32a791decdeac62a77ec4dfd73ef7971c65088b2 Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Fri, 8 Nov 2024 16:21:47 -0800 Subject: [PATCH 2/2] Remove unused func --- provider/resources.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/provider/resources.go b/provider/resources.go index 10701b87..b0569a6f 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -106,9 +106,6 @@ func setIDType(info tfbridge.PropertyVisitInfo) (tfbridge.PropertyVisitResult, e return tfbridge.PropertyVisitResult{HasEffect: true}, nil } -// A predicate that always returns true. -func always[T any](T) bool { return true } - // Provider returns additional overlaid schema and metadata associated with the provider.. func Provider() tfbridge.ProviderInfo { // Instantiate the Terraform provider