Skip to content

Commit

Permalink
fix: infinite drift on project role resource
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Sep 16, 2024
1 parent 5e56ae8 commit 793e997
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/provider/resource/project_role_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/types"
)
Expand Down Expand Up @@ -71,8 +72,10 @@ func (r *projectRoleResource) Schema(_ context.Context, _ resource.SchemaRequest
Required: true,
},
"description": schema.StringAttribute{
Description: "The description for the new role",
Description: "The description for the new role. Defaults to an empty string.",
Optional: true,
Computed: true,
Default: stringdefault.StaticString(""),
},
"project_slug": schema.StringAttribute{
Description: "The slug of the project to create role",
Expand Down

0 comments on commit 793e997

Please sign in to comment.