File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/org/elasticsearch/rest/action/admin/indices Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ static RestResponse buildRestResponse(
9191 if (aliases .isEmpty () == false ) {
9292 // only display indices that have aliases
9393 indicesToDisplay .add (cursor .getKey ());
94- for (final AliasMetadata aliasMetadata : cursor . getValue () ) {
94+ for (final AliasMetadata aliasMetadata : aliases ) {
9595 returnedAliasNames .add (aliasMetadata .alias ());
9696 }
9797 }
9898 }
9999
100- for (final Map . Entry < String , List <DataStreamAlias >> entry : dataStreamAliases .entrySet ()) {
101- for (final DataStreamAlias dataStreamAlias : entry . getValue () ) {
100+ for (final List <DataStreamAlias > dataStreamAliasList : dataStreamAliases .values ()) {
101+ for (final DataStreamAlias dataStreamAlias : dataStreamAliasList ) {
102102 returnedAliasNames .add (dataStreamAlias .getName ());
103103 }
104104 }
You can’t perform that action at this time.
0 commit comments