add equals method to action invocation

pull/37481/head
Daniel Schmidt 9 months ago
parent 0313b1471d
commit 854232f443

@ -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()

Loading…
Cancel
Save