Skip to content

Commit

Permalink
return after first modifier that errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Sep 1, 2021
1 parent 2fb3888 commit 0db56e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tfsdk/attribute.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,5 +413,8 @@ func (a Attribute) modifyPlan(ctx context.Context, req ModifyAttributePlanReques
for _, planModifier := range a.PlanModifiers {
planModifier.Modify(ctx, modifyReq, resp)
modifyReq.AttributePlan = resp.AttributePlan
if diagnostics.DiagsHasErrors(resp.Diagnostics) {
return
}
}
}

0 comments on commit 0db56e8

Please sign in to comment.