Only show warning on project members field if config not empty (#513)
This commit is contained in:
parent
043f1d6331
commit
820586864e
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue