Add UseStateForUnknown for all Computed fields that RequireReplacement and dont change after an update (#149)

This commit is contained in:
Vicente Pinto 2023-11-14 17:16:50 +00:00 committed by GitHub
parent f62984aa0f
commit 45e8981350
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View file

@ -155,6 +155,7 @@ func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
stringplanmodifier.UseStateForUnknown(),
},
},
"roles": schema.SetAttribute{