diff --git a/internal/plans/action_invocation.go b/internal/plans/action_invocation.go index 0757d13285..be46a127ec 100644 --- a/internal/plans/action_invocation.go +++ b/internal/plans/action_invocation.go @@ -23,6 +23,11 @@ type ActionInvocationInstance struct { ConfigValue cty.Value } +func (ai *ActionInvocationInstance) Equals(other *ActionInvocationInstance) bool { + // Since the trigger can be the same if it's a CLI invocation we also compare the action addr + return ai.Addr.Equal(other.Addr) && ai.ActionTrigger.Equals(other.ActionTrigger) +} + type ActionTrigger interface { actionTriggerSigil()