From 4ee977dcebc8a63abcf37da8cf9098e798d337a0 Mon Sep 17 00:00:00 2001 From: Chase Engelbrecht Date: Thu, 14 Mar 2024 19:47:49 -0700 Subject: [PATCH] Fix another miss from manual cherry-pick Signed-off-by: Chase Engelbrecht --- .../transport/TransportIndexDetectorAction.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java index e34a8f617..c21f7d3f8 100644 --- a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java +++ b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexDetectorAction.java @@ -415,6 +415,17 @@ public void onFailure(Exception e) { } } } + } else { + onIndexMonitorRequestCreation( + index, + monitorsToBeUpdated, + monitorsToBeAdded, + rulesById, + detector, + refreshPolicy, + queryFieldNames, + listener + ); } }