Skip to content

Commit 222668a

Browse files
when targeting a resource the associated actions should be run
1 parent a5e0e64 commit 222668a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/terraform/node_action_trigger_plan.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ func (n *nodeActionTriggerPlanExpand) DynamicExpand(ctx EvalContext) (*Graph, tf
102102
absResourceInstanceAddr := n.lifecycleActionTrigger.resourceAddress.Absolute(module).Instance(key)
103103

104104
if n.resourceTargets != nil {
105-
// If the triggering resource was targeted, make sure the instance
106-
// that triggered this was targeted specifically.
105+
// If the triggering resource was targeted, make sure the instance
106+
// that triggered this was targeted specifically.
107+
107108
matched := false
108109
for _, resourceTarget := range n.resourceTargets {
109110
if resourceTarget.TargetContains(absResourceInstanceAddr) {

0 commit comments

Comments
 (0)