mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
add an option for name as well as _name for filtering allocation
This commit is contained in:
parent
ca5f6ec0f6
commit
d5fcb0d52c
@ -80,7 +80,7 @@ public class DiscoveryNodeFilters {
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} else if ("_name".equals(attr)) {
|
||||
} else if ("_name".equals(attr) || "name".equals(attr)) {
|
||||
for (String value : values) {
|
||||
if (Regex.simpleMatch(value, node.name())) {
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user