From 92d99270da7b2101ab606644ab0d26546ddd96e7 Mon Sep 17 00:00:00 2001 From: Omer Lachish Date: Tue, 15 Oct 2024 14:13:12 +0200 Subject: [PATCH] use GetDatabricksStagingName for resource name --- .../providers/pluginfw/resources/sharing/resource_share.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/providers/pluginfw/resources/sharing/resource_share.go b/internal/providers/pluginfw/resources/sharing/resource_share.go index 8971fded4..081d06993 100644 --- a/internal/providers/pluginfw/resources/sharing/resource_share.go +++ b/internal/providers/pluginfw/resources/sharing/resource_share.go @@ -20,6 +20,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" ) +const resourceName = "share" + var _ resource.ResourceWithConfigure = &ShareResource{} func ResourceShare() resource.Resource { @@ -133,7 +135,7 @@ type ShareResource struct { } func (r *ShareResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = "databricks_share_pluginframework" + resp.TypeName = pluginfwcommon.GetDatabricksStagingName(resourceName) } func (r *ShareResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {