Skip to content

Commit

Permalink
Use plan modifier also in Team resource
Browse files Browse the repository at this point in the history
  • Loading branch information
majori committed Mar 25, 2024
1 parent 5ab7e80 commit 6c2fdd0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/provider/team_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import (
"github.com/hashicorp/terraform-plugin-framework/path"
"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/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/types"
)

Expand Down Expand Up @@ -51,6 +53,9 @@ func (r *TeamResource) Schema(ctx context.Context, req resource.SchemaRequest, r
"id": schema.StringAttribute{
MarkdownDescription: "Team UUID",
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
},
},
}
Expand Down

0 comments on commit 6c2fdd0

Please sign in to comment.