Skip to content

Commit ca566e8

Browse files
committed
More
1 parent 49f9c4c commit ca566e8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/permission/IndicesPermission.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,10 @@ public boolean canHaveBackingIndices() {
519519
}
520520

521521
public String nameCombinedWithSelector() {
522-
if (IndexComponentSelector.FAILURES.equals(selector)) {
523-
return IndexNameExpressionResolver.combineSelector(name, selector);
524-
}
525-
return name;
522+
String combined = IndexNameExpressionResolver.combineSelector(name, selector);
523+
assert false != IndexComponentSelector.FAILURES.equals(selector) || name.equals(combined)
524+
: "Only failures selectors should result in explicit selectors suffix";
525+
return combined;
526526
}
527527
}
528528

0 commit comments

Comments
 (0)