From 854232f4439b6bf97eefd4d32a1fe901d82a61e1 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Mon, 18 Aug 2025 14:21:32 +0200 Subject: [PATCH] add equals method to action invocation --- internal/plans/action_invocation.go | 5 +++++ 1 file changed, 5 insertions(+) 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()