Skip to content

Commit 76fbb98

Browse files
jacobbednarzstainless-app[bot]
authored andcommitted
fix(account): remove recreation on tenant unit
1 parent a4f1574 commit 76fbb98

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/services/account/schema.go

-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"github.com/hashicorp/terraform-plugin-framework/resource"
1212
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1313
"github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault"
14-
"github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier"
1514
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
1615
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
1716
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
@@ -34,7 +33,6 @@ func ResourceSchema(ctx context.Context) schema.Schema {
3433
Validators: []validator.String{
3534
stringvalidator.OneOfCaseInsensitive("standard", "enterprise"),
3635
},
37-
PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace()},
3836
},
3937
"unit": schema.SingleNestedAttribute{
4038
Description: "information related to the tenant unit, and optionally, an id of the unit to create the account on. see https://developers.cloudflare.com/tenant/how-to/manage-accounts/",
@@ -47,7 +45,6 @@ func ResourceSchema(ctx context.Context) schema.Schema {
4745
Optional: true,
4846
},
4947
},
50-
PlanModifiers: []planmodifier.Object{objectplanmodifier.RequiresReplace()},
5148
},
5249
"name": schema.StringAttribute{
5350
Description: "Account name",

0 commit comments

Comments
 (0)