Skip to content

Commit 580e3ba

Browse files
zane-neodbwiddis
andauthored
Update ml-algorithms/src/main/java/org/opensearch/ml/engine/tools/CatIndexTool.java
Co-authored-by: Daniel Widdis <widdis@gmail.com> Signed-off-by: zane-neo <zaniu@amazon.com>
1 parent 0714b07 commit 580e3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ml-algorithms/src/main/java/org/opensearch/ml/engine/tools/CatIndexTool.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public <T> void run(Map<String, String> parameters, ActionListener<T> listener)
119119
final String[] indices = indexList.toArray(Strings.EMPTY_ARRAY);
120120

121121
final IndicesOptions indicesOptions = IndicesOptions.strictExpand();
122-
final boolean local = parameters.containsKey("local") && Boolean.parseBoolean(parameters.get("local"));
122+
final boolean local = Boolean.parseBoolean(parameters.get("local"));
123123
final boolean includeUnloadedSegments = Boolean.parseBoolean(parameters.get("include_unloaded_segments"));
124124
final PageParams pageParams = new PageParams(null, PageParams.PARAM_ASC_SORT_VALUE, DEFAULT_PAGE_SIZE);
125125

0 commit comments

Comments
 (0)