From 5894e0d7f349b97322de72003dfa1087bf1e68ed Mon Sep 17 00:00:00 2001 From: gezimbll Date: Mon, 22 Sep 2025 12:50:33 +0200 Subject: [PATCH] added in ThresholdProfile.Clone() to copy EeIDs --- engine/thresholds.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/thresholds.go b/engine/thresholds.go index 86a53dd66..3a01a3a0d 100644 --- a/engine/thresholds.go +++ b/engine/thresholds.go @@ -83,6 +83,10 @@ func (tp *ThresholdProfile) Clone() *ThresholdProfile { if tp.ActivationInterval != nil { clone.ActivationInterval = tp.ActivationInterval.Clone() } + if tp.EeIDs != nil { + clone.EeIDs = make([]string, len(tp.EeIDs)) + copy(clone.EeIDs, tp.EeIDs) + } return clone }