Skip to content

Commit e0748b3

Browse files
add interface checks
1 parent 7721cd5 commit e0748b3

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

internal/plans/changes_src.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,6 @@ func (acs *ActionInvocationInstanceSrc) Less(other *ActionInvocationInstanceSrc)
617617
return acs.ActionTrigger.Less(other.ActionTrigger)
618618
}
619619

620-
// TODO: Do we still need this?
621-
622620
// FilterLaterActionInvocations returns the list of action invocations that
623621
// should be triggered after this one. This function assumes the supplied list
624622
// of action invocations has already been filtered to invocations against the

internal/terraform/node_action_trigger_abstract.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ func (at *lifecycleActionTrigger) Name() string {
4848
}
4949

5050
var (
51-
_ GraphNodeReferencer = (*nodeAbstractActionTriggerExpand)(nil)
51+
_ GraphNodeReferencer = (*nodeAbstractActionTriggerExpand)(nil)
52+
_ GraphNodeProviderConsumer = (*nodeAbstractActionTriggerExpand)(nil)
53+
_ GraphNodeModulePath = (*nodeAbstractActionTriggerExpand)(nil)
5254
)
5355

5456
func (n *nodeAbstractActionTriggerExpand) Name() string {

internal/terraform/node_action_trigger_apply.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ type nodeActionTriggerApplyExpand struct {
2323
var (
2424
_ GraphNodeDynamicExpandable = (*nodeActionTriggerApplyExpand)(nil)
2525
_ GraphNodeReferencer = (*nodeActionTriggerApplyExpand)(nil)
26+
_ GraphNodeProviderConsumer = (*nodeActionTriggerApplyExpand)(nil)
27+
_ GraphNodeModulePath = (*nodeActionTriggerApplyExpand)(nil)
2628
)
2729

2830
func (n *nodeActionTriggerApplyExpand) Name() string {

internal/terraform/node_action_trigger_instance_apply.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ type nodeActionTriggerApplyInstance struct {
2626
}
2727

2828
var (
29-
_ GraphNodeExecutable = (*nodeActionTriggerApplyInstance)(nil)
30-
_ GraphNodeReferencer = (*nodeActionTriggerApplyInstance)(nil)
29+
_ GraphNodeExecutable = (*nodeActionTriggerApplyInstance)(nil)
30+
_ GraphNodeReferencer = (*nodeActionTriggerApplyInstance)(nil)
31+
_ GraphNodeProviderConsumer = (*nodeActionTriggerApplyInstance)(nil)
32+
_ GraphNodeModulePath = (*nodeActionTriggerApplyInstance)(nil)
3133
)
3234

3335
func (n *nodeActionTriggerApplyInstance) Name() string {

internal/terraform/node_action_trigger_instance_plan.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ import (
2020
"github.com/hashicorp/terraform/internal/tfdiags"
2121
)
2222

23+
var (
24+
_ GraphNodeExecutable = (*nodeActionTriggerPlanInstance)(nil)
25+
_ GraphNodeModulePath = (*nodeActionTriggerPlanInstance)(nil)
26+
)
27+
2328
type nodeActionTriggerPlanInstance struct {
2429
actionAddress addrs.AbsActionInstance
2530
resolvedProvider addrs.AbsProviderConfig

internal/terraform/node_action_trigger_plan.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ type nodeActionTriggerPlanExpand struct {
2020
var (
2121
_ GraphNodeDynamicExpandable = (*nodeActionTriggerPlanExpand)(nil)
2222
_ GraphNodeReferencer = (*nodeActionTriggerPlanExpand)(nil)
23+
_ GraphNodeProviderConsumer = (*nodeActionTriggerPlanExpand)(nil)
24+
_ GraphNodeModulePath = (*nodeActionTriggerPlanExpand)(nil)
2325
)
2426

2527
func (n *nodeActionTriggerPlanExpand) Name() string {

0 commit comments

Comments
 (0)