Skip to content

Commit

Permalink
fix project update behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreatma committed Mar 20, 2024
1 parent 92e2f47 commit 30e64cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/planmodifiers/immutable_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (d *immutableListPlanModifier) PlanModifyList(ctx context.Context, request
request.Path,
"Change not allowed",
fmt.Sprintf(
"Cannot remove elements from the `%s` list field. Resource recreation would be required.",
"Elements of the `%s` list field can not be removed. Resource recreation would be required.",
request.Path.String(),
),
)
Expand All @@ -40,4 +40,4 @@ func (d *immutableListPlanModifier) Description(ctx context.Context) string {

func (d *immutableListPlanModifier) MarkdownDescription(ctx context.Context) string {
return d.Description(ctx)
}
}
1 change: 1 addition & 0 deletions internal/resources/metal/project/resource_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func resourceSchema(ctx context.Context) schema.Schema {
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
stringplanmodifier.UseStateForUnknown(),
},
Validators: []validator.String{
equinix_validation.UUID(),
Expand Down

0 comments on commit 30e64cc

Please sign in to comment.