diff --git a/internal/planmodifiers/immutable_list.go b/internal/planmodifiers/immutable_list.go index c4555f4c9..92921ebc0 100644 --- a/internal/planmodifiers/immutable_list.go +++ b/internal/planmodifiers/immutable_list.go @@ -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(), ), ) @@ -40,4 +40,4 @@ func (d *immutableListPlanModifier) Description(ctx context.Context) string { func (d *immutableListPlanModifier) MarkdownDescription(ctx context.Context) string { return d.Description(ctx) -} \ No newline at end of file +} diff --git a/internal/resources/metal/project/resource_schema.go b/internal/resources/metal/project/resource_schema.go index ebea0d2b8..f9c3ecd44 100644 --- a/internal/resources/metal/project/resource_schema.go +++ b/internal/resources/metal/project/resource_schema.go @@ -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(),