comment update
This commit is contained in:
parent
cb0d50436e
commit
3a6e2b322d
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue