add an option for name as well as _name for filtering allocation

This commit is contained in:
Shay Banon 2012-02-21 17:57:47 +02:00
parent ca5f6ec0f6
commit d5fcb0d52c
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class DiscoveryNodeFilters {
} }
} }
return false; return false;
} else if ("_name".equals(attr)) { } else if ("_name".equals(attr) || "name".equals(attr)) {
for (String value : values) { for (String value : values) {
if (Regex.simpleMatch(value, node.name())) { if (Regex.simpleMatch(value, node.name())) {
return true; return true;