Skip to content

Commit e691a08

Browse files
committed
remove inline sig
1 parent fb1a082 commit e691a08

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

internal/terraform/node_resource_abstract_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func (n *NodeAbstractResourceInstance) preApplyHook(ctx EvalContext, change *pla
231231
}
232232

233233
// postApplyHook calls the post-Apply hook
234-
func (n *NodeAbstractResourceInstance) postApplyHook(ctx EvalContext, action plans.Action, state *states.ResourceInstanceObject, priorState cty.Value, err error) tfdiags.Diagnostics {
234+
func (n *NodeAbstractResourceInstance) postApplyHook(ctx EvalContext, state *states.ResourceInstanceObject, err error) tfdiags.Diagnostics {
235235
var diags tfdiags.Diagnostics
236236

237237
// Only managed resources have user-visible apply actions.

internal/terraform/node_resource_apply_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ func (n *NodeApplyableResourceInstance) managedResourceExecute(ctx EvalContext)
387387
}
388388
}
389389

390-
diags = diags.Append(n.postApplyHook(ctx, diffApply.Action, state, diffApply.Change.Before, diags.Err()))
390+
diags = diags.Append(n.postApplyHook(ctx, state, diags.Err()))
391391
diags = diags.Append(updateStateHook(ctx))
392392

393393
// Post-conditions might block further progress. We intentionally do this

internal/terraform/node_resource_destroy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (n *NodeDestroyResourceInstance) managedResourceExecute(ctx EvalContext) (d
204204
if diags.HasErrors() {
205205
// If we have a provisioning error, then we just call
206206
// the post-apply hook now.
207-
diags = diags.Append(n.postApplyHook(ctx, plans.Delete, state, changeApply.Change.Before, diags.Err()))
207+
diags = diags.Append(n.postApplyHook(ctx, state, diags.Err()))
208208
return diags
209209
}
210210
}
@@ -223,7 +223,7 @@ func (n *NodeDestroyResourceInstance) managedResourceExecute(ctx EvalContext) (d
223223
}
224224

225225
// create the err value for postApplyHook
226-
diags = diags.Append(n.postApplyHook(ctx, changeApply.Action, state, changeApply.Change.Before, diags.Err()))
226+
diags = diags.Append(n.postApplyHook(ctx, state, diags.Err()))
227227
diags = diags.Append(updateStateHook(ctx))
228228
return diags
229229
}

internal/terraform/node_resource_destroy_deposed.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func (n *NodeDestroyDeposedResourceInstanceObject) Execute(ctx EvalContext, op w
326326
return diags
327327
}
328328

329-
diags = diags.Append(n.postApplyHook(ctx, change.Action, state, change.Change.Before, diags.Err()))
329+
diags = diags.Append(n.postApplyHook(ctx, state, diags.Err()))
330330

331331
return diags.Append(updateStateHook(ctx))
332332
}

internal/terraform/node_resource_plan.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ func (n *nodeExpandPlannableResource) dynamicExpand(ctx EvalContext, moduleInsta
373373

374374
orphans := n.findOrphans(ctx, moduleInstances)
375375

376-
// TODO: orphaned resource instances too?
377376
for _, res := range orphans {
378377
for key := range res.Instances {
379378
addr := res.Addr.Instance(key)

0 commit comments

Comments
 (0)