comment update

This commit is contained in:
James Bardin 2021-01-13 16:24:31 -05:00
parent cb0d50436e
commit 3a6e2b322d
1 changed files with 2 additions and 2 deletions

View File

@ -191,8 +191,8 @@ func (n *NodeDestroyResourceInstance) Execute(ctx EvalContext, op walkOperation)
// we pass a nil configuration to apply because we are destroying // we pass a nil configuration to apply because we are destroying
s, d := n.apply(ctx, state, changeApply, nil, false) s, d := n.apply(ctx, state, changeApply, nil, false)
state, diags = s, diags.Append(d) state, diags = s, diags.Append(d)
// we must keep applyDiags separate until returning in order to process // we don't return immediately here on error, so that the state can be
// the error independently // finalized
err := n.writeResourceInstanceState(ctx, state, n.Dependencies, workingState) err := n.writeResourceInstanceState(ctx, state, n.Dependencies, workingState)
if err != nil { if err != nil {