Skip to content

Commit

Permalink
fix: add UseStateForUnknown to is_disabled field
Browse files Browse the repository at this point in the history
  • Loading branch information
grace-rehn committed Nov 20, 2024
1 parent 9f7ed13 commit 477675e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions octopusdeploy_framework/schemas/tenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/attr"
datasourceSchema "github.com/hashicorp/terraform-plugin-framework/datasource/schema"
resourceSchema "github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
Expand Down Expand Up @@ -148,6 +149,9 @@ func (t TenantSchema) GetResourceSchema() resourceSchema.Schema {
Description: "The disabled status of this tenant.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Bool{
boolplanmodifier.UseStateForUnknown(),
},
},
"name": GetNameResourceSchema(true),
"space_id": GetSpaceIdResourceSchema("tenant"),
Expand Down

0 comments on commit 477675e

Please sign in to comment.