Fix Set->String conversion

Original commit: elastic/x-pack-elasticsearch@c34f2d252d
This commit is contained in:
Nik Everett 2015-09-25 10:16:34 -04:00
parent 3ce9d903e8
commit 81970a564f
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ public class IndexAuditTrail extends AbstractComponent implements AuditTrail, Cl
Settings.Builder builder = Settings.builder();
for (Map.Entry<String, String> entry : newSettings.getAsMap().entrySet()) {
String name = "index." + entry.getKey();
if (FORBIDDEN_INDEX_SETTING.contains(name)) {
if (FORBIDDEN_INDEX_SETTING.equals(name)) {
logger.warn("overriding the default [{}} setting is forbidden. ignoring...", name);
continue;
}