From a0c1abda5270116fd8a815bd961c83cc3e86ba4f Mon Sep 17 00:00:00 2001 From: Pranshu Shukla Date: Tue, 3 Dec 2024 15:33:54 +0530 Subject: [PATCH] fix: forbiddenAPIs check Signed-off-by: Pranshu Shukla --- .../java/org/opensearch/repositories/RepositoriesService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/java/org/opensearch/repositories/RepositoriesService.java b/server/src/main/java/org/opensearch/repositories/RepositoriesService.java index 08008b12d0929..0b9536e273f25 100644 --- a/server/src/main/java/org/opensearch/repositories/RepositoriesService.java +++ b/server/src/main/java/org/opensearch/repositories/RepositoriesService.java @@ -80,6 +80,7 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.Objects; import java.util.Set; @@ -909,6 +910,7 @@ public void ensureValidSystemRepositoryUpdate(RepositoryMetadata newRepositoryMe Settings currentRepositoryMetadataSettings = currentRepositoryMetadata.settings(); assert Objects.nonNull(repository) : String.format( + Locale.ROOT, "repository [%s] not present in RepositoryService", currentRepositoryMetadata.name() );