Skip to content

Commit 34dda6b

Browse files
committed
Revert "Fix nested project client calls"
This reverts commit a8e5057.
1 parent 4e538ca commit 34dda6b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/template/IndexTemplateRegistry.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,7 @@ public void onFailure(Exception e) {
851851
getOrigin(),
852852
request,
853853
groupedActionListener,
854-
// We don't use the project client as the project ID is already set by the caller of this method.
855-
(req, listener) -> client.execute(RolloverAction.INSTANCE, req, listener)
854+
(req, listener) -> projectResolver.projectClient(client, project.id()).execute(RolloverAction.INSTANCE, req, listener)
856855
);
857856
}
858857
});

0 commit comments

Comments
 (0)