From e8cd6d1930405643b365d9df608c6682f664d4d8 Mon Sep 17 00:00:00 2001 From: Sicheng Song Date: Mon, 15 Apr 2024 17:40:04 +0000 Subject: [PATCH] Adjust annotation Signed-off-by: Sicheng Song --- .../ml/common/transport/connector/MLCreateConnectorInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/opensearch/ml/common/transport/connector/MLCreateConnectorInput.java b/common/src/main/java/org/opensearch/ml/common/transport/connector/MLCreateConnectorInput.java index 20568f3fd0..a03c32f3bf 100644 --- a/common/src/main/java/org/opensearch/ml/common/transport/connector/MLCreateConnectorInput.java +++ b/common/src/main/java/org/opensearch/ml/common/transport/connector/MLCreateConnectorInput.java @@ -150,7 +150,7 @@ public static MLCreateConnectorInput parse(XContentParser parser, boolean update parameters = getParameterMap(parser.map()); break; case CONNECTOR_CREDENTIAL_FIELD: - // We need to filter out any key string that is trying to imitate the subfield of the secretArn of the credential map + // We need to filter out any key string that is trying to imitate the subfield of any kind of ARN of the credential map credential = new HashMap<>(); Map credentialKeyToAdd = parser.mapStrings(); Pattern pattern = Pattern.compile("[a-zA-Z]+Arn\\.");