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…
Reference in New Issue