Only show warning on project members field if config not empty (#513)

This commit is contained in:
João Palet 2024-08-23 09:13:22 +01:00 committed by GitHub
parent 043f1d6331
commit 820586864e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,6 +252,10 @@ func (r *projectResource) Schema(_ context.Context, _ resource.SchemaRequest, re
// ModifyPlan will be called in the Plan phase and will check if the members field is set
func (r *projectResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse) { // nolint:gocritic // function signature required by Terraform
if req.Plan.Raw.IsNull() {
return
}
var model Model
diags := req.Plan.Get(ctx, &model)
if diags.HasError() {