Skip to content

Commit

Permalink
use GetDatabricksStagingName for resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchy committed Oct 15, 2024
1 parent 77578a8 commit 81769af
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 81769af

Please sign in to comment.