From 6a770fa102e38b9d9453573ca31b19f618435ca4 Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Wed, 14 Aug 2024 18:56:47 -0700 Subject: [PATCH] chore: remove plan modifiers from retention period (#738) --- .../schemas/runbook_retention_period.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/octopusdeploy_framework/schemas/runbook_retention_period.go b/octopusdeploy_framework/schemas/runbook_retention_period.go index d8bbdc8b6..efe7833d4 100644 --- a/octopusdeploy_framework/schemas/runbook_retention_period.go +++ b/octopusdeploy_framework/schemas/runbook_retention_period.go @@ -10,9 +10,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/path" resourceSchema "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" ) @@ -41,9 +38,6 @@ func getRunbookRetentionPeriodSchema() map[string]resourceSchema.Attribute { Validators: []validator.Int64{ int64validator.AtLeast(0), }, - PlanModifiers: []planmodifier.Int64{ - int64planmodifier.UseStateForUnknown(), - }, }, runbookRetentionPeriodSchemeAttributeNames.ShouldKeepForever: resourceSchema.BoolAttribute{ Description: "Indicates if items should never be deleted. The default value is `false`.", @@ -53,9 +47,6 @@ func getRunbookRetentionPeriodSchema() map[string]resourceSchema.Attribute { Validators: []validator.Bool{ boolvalidator.ConflictsWith(path.MatchRelative().AtParent().AtName(runbookRetentionPeriodSchemeAttributeNames.QuantityToKeep)), }, - PlanModifiers: []planmodifier.Bool{ - boolplanmodifier.UseStateForUnknown(), - }, }, } }