use real setting instead of the settings object

This commit is contained in:
Simon Willnauer 2016-01-27 14:59:43 +01:00
parent 1fdc11aa96
commit 39d7116dbe

View File

@ -107,7 +107,7 @@ public class TribeService extends AbstractLifecycleComponent<TribeService> {
if (sb.get("cluster.name") == null) {
sb.put("cluster.name", "tribe_" + Strings.randomBase64UUID()); // make sure it won't join other tribe nodes in the same JVM
}
sb.put(TransportMasterNodeReadAction.FORCE_LOCAL_SETTING, true);
sb.put(TransportMasterNodeReadAction.FORCE_LOCAL_SETTING.getKey(), true);
return sb.build();
}