diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt b/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt index 55dea88e0..0f092290c 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/util/AlertingUtils.kt @@ -194,7 +194,7 @@ fun printsSampleDocData(trigger: Trigger): Boolean { // TODO: Consider excluding `{{ctx}}` from criteria for bucket-level triggers as printing all of // their sample documents could make the notification message too large to send. action.messageTemplate.idOrCode.contains("{{ctx}}") || - action.messageTemplate.idOrCode.contains(AlertContext.SAMPLE_DOCS_FIELD) + action.messageTemplate.idOrCode.contains(AlertContext.SAMPLE_DOCS_FIELD) } }