Skip to content

Commit

Permalink
chore: remove plan modifiers from retention period (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
hnrkndrssn authored Aug 15, 2024
1 parent 2261c2a commit 6a770fa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions octopusdeploy_framework/schemas/runbook_retention_period.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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`.",
Expand All @@ -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(),
},
},
}
}
Expand Down

0 comments on commit 6a770fa

Please sign in to comment.