From 5a63c823a5094f465b4cf29b2e6b9a1c9a09c235 Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Tue, 17 Sep 2024 10:48:49 +0200 Subject: [PATCH] Enable PRC (#877) Fixes #875 --- provider/resources.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/provider/resources.go b/provider/resources.go index 6d4cd4b7..b907d799 100644 --- a/provider/resources.go +++ b/provider/resources.go @@ -106,10 +106,14 @@ 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 - p := shimv2.NewProvider(newrelic.Provider()) + p := shimv2.NewProvider(newrelic.Provider(), + shimv2.WithPlanResourceChange(always)) // Create a Pulumi provider mapping prov := tfbridge.ProviderInfo{