Skip to content

Commit 851fd32

Browse files
committed
Remove deprecated method usage
1 parent 1e47060 commit 851fd32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/PutLifecycleMetadataService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private static void validatePrerequisites(LifecyclePolicy policy, ProjectState s
154154
for (Phase phase : phasesWithSearchableSnapshotActions) {
155155
SearchableSnapshotAction action = (SearchableSnapshotAction) phase.getActions().get(SearchableSnapshotAction.NAME);
156156
String repository = action.getSnapshotRepository();
157-
if (RepositoriesMetadata.get(state.cluster()).repository(repository) == null) {
157+
if (RepositoriesMetadata.get(state.metadata()).repository(repository) == null) {
158158
throw new IllegalArgumentException(
159159
"no such repository ["
160160
+ repository

0 commit comments

Comments
 (0)