Skip to content

Commit 8205868

Browse files
authored
Only show warning on project members field if config not empty (#513)
1 parent 043f1d6 commit 8205868

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • stackit/internal/services/resourcemanager/project

stackit/internal/services/resourcemanager/project/resource.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ func (r *projectResource) Schema(_ context.Context, _ resource.SchemaRequest, re
252252

253253
// ModifyPlan will be called in the Plan phase and will check if the members field is set
254254
func (r *projectResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse) { // nolint:gocritic // function signature required by Terraform
255+
if req.Plan.Raw.IsNull() {
256+
return
257+
}
258+
255259
var model Model
256260
diags := req.Plan.Get(ctx, &model)
257261
if diags.HasError() {

0 commit comments

Comments
 (0)