Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 37baea6

Browse files
committedMar 13, 2025
fix(api): avoid spurious replacement plans for computed ID properties (#5244)
1 parent 7d287a7 commit 37baea6

File tree

48 files changed

+61
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+61
-54
lines changed
 

‎internal/services/api_shield/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func ResourceSchema(ctx context.Context) schema.Schema {
2323
"id": schema.StringAttribute{
2424
Description: "Identifier",
2525
Computed: true,
26-
PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace()},
26+
PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplace()},
2727
},
2828
"zone_id": schema.StringAttribute{
2929
Description: "Identifier",

‎internal/services/api_shield_discovery_operation/schema.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func ResourceSchema(ctx context.Context) schema.Schema {
2121
"id": schema.StringAttribute{
2222
Description: "UUID",
2323
Computed: true,
24-
PlanModifiers: []planmodifier.String{stringplanmodifier.RequiresReplace()},
24+
PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplace()},
2525
},
2626
"operation_id": schema.StringAttribute{
2727
Description: "UUID",

0 commit comments

Comments
 (0)
Please sign in to comment.