File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -168,14 +168,14 @@ func (b *PlanGraphBuilder) Steps() []GraphTransformer {
168168 & ActionTriggerConfigTransformer {
169169 Config : b .Config ,
170170 Operation : b .Operation ,
171- Targets : b .ActionTargets ,
171+ ActionTargets : b .ActionTargets ,
172172 queryPlanMode : b .queryPlan ,
173173 },
174174
175175 & ActionInvokeTransformer {
176176 Config : b .Config ,
177177 Operation : b .Operation ,
178- Targets : b .ActionTargets ,
178+ ActionTargets : b .ActionTargets ,
179179 queryPlanMode : b .queryPlan ,
180180 },
181181
Original file line number Diff line number Diff line change @@ -11,21 +11,21 @@ import (
1111)
1212
1313type ActionInvokeTransformer struct {
14- Config * configs.Config
15- Targets []addrs.Targetable
16- Operation walkOperation
14+ Config * configs.Config
15+ ActionTargets []addrs.Targetable
16+ Operation walkOperation
1717
1818 queryPlanMode bool
1919}
2020
2121func (t * ActionInvokeTransformer ) Transform (g * Graph ) error {
22- if t .Operation != walkPlan || t .queryPlanMode || len (t .Targets ) == 0 {
22+ if t .Operation != walkPlan || t .queryPlanMode || len (t .ActionTargets ) == 0 {
2323 return nil
2424 }
2525
2626 // Then we're invoking and we're just going to include the actions that
2727 // have been specifically asked for.
28- for _ , target := range t .Targets {
28+ for _ , target := range t .ActionTargets {
2929 var config * configs.Action
3030 switch target := target .(type ) {
3131 case addrs.AbsAction :
Original file line number Diff line number Diff line change @@ -13,16 +13,16 @@ import (
1313)
1414
1515type ActionTriggerConfigTransformer struct {
16- Config * configs.Config
17- Targets []addrs.Targetable
18- Operation walkOperation
16+ Config * configs.Config
17+ ActionTargets []addrs.Targetable
18+ Operation walkOperation
1919
2020 queryPlanMode bool
2121}
2222
2323func (t * ActionTriggerConfigTransformer ) Transform (g * Graph ) error {
2424 // We don't want to run if we are using the query plan mode or have targets in place
25- if t .Operation != walkPlan || t .queryPlanMode || len (t .Targets ) > 0 {
25+ if t .Operation != walkPlan || t .queryPlanMode || len (t .ActionTargets ) > 0 {
2626 return nil
2727 }
2828
You can’t perform that action at this time.
0 commit comments