From 2365a9ff9ae387a01cf39aac793e327bb4536223 Mon Sep 17 00:00:00 2001 From: Krishna Kondaka Date: Wed, 20 Dec 2023 19:27:10 +0000 Subject: [PATCH] Addressed review comments Signed-off-by: Krishna Kondaka --- .../plugins/processor/date/DateProcessorConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data-prepper-plugins/date-processor/src/main/java/org/opensearch/dataprepper/plugins/processor/date/DateProcessorConfig.java b/data-prepper-plugins/date-processor/src/main/java/org/opensearch/dataprepper/plugins/processor/date/DateProcessorConfig.java index 5912ccb86c..8c9c37957d 100644 --- a/data-prepper-plugins/date-processor/src/main/java/org/opensearch/dataprepper/plugins/processor/date/DateProcessorConfig.java +++ b/data-prepper-plugins/date-processor/src/main/java/org/opensearch/dataprepper/plugins/processor/date/DateProcessorConfig.java @@ -209,7 +209,7 @@ boolean isValidMatch() { return true; } - @AssertTrue(message = "match can have a minimum and maximum of 1 entry and at least one pattern.") + @AssertTrue(message = "Invalid output format.") boolean isValidOutputFormat() { return DateMatch.isValidPattern(outputFormat); } @@ -217,7 +217,7 @@ boolean isValidOutputFormat() { @AssertTrue(message = "Invalid source_timezone provided.") boolean isSourceTimezoneValid() { try { - sourceZoneId = buildZoneId(sourceTimezone); + sourceZoneId = buildZoneId(sourceTimezone); return true; } catch (Exception e) { return false;