From 477675e9dd097b109c098e28e0f7eec0028267d7 Mon Sep 17 00:00:00 2001 From: Grace Rehn Date: Wed, 20 Nov 2024 15:37:58 +1000 Subject: [PATCH] fix: add UseStateForUnknown to is_disabled field --- octopusdeploy_framework/schemas/tenant.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/octopusdeploy_framework/schemas/tenant.go b/octopusdeploy_framework/schemas/tenant.go index 2eb4803c..f0cc07bc 100644 --- a/octopusdeploy_framework/schemas/tenant.go +++ b/octopusdeploy_framework/schemas/tenant.go @@ -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" @@ -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"),