Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'cluster_manager' role attachment when using 'node.master' deprecated setting #6331

Merged
merged 12 commits into from
Mar 28, 2023
Prev Previous commit
Next Next commit
minor refactoring with boolean condition
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
  • Loading branch information
sandeshkr419 committed Mar 28, 2023
commit b7cda75e863825cb3a9b5aa259e2cc705ea65df4
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public void validateRole(List<DiscoveryNodeRole> roles) {

@Override
public boolean isEnabledByDefault(final Settings settings) {
return !Booleans.isBoolean(settings.get("node.master"));
return Booleans.isBoolean(settings.get("node.master")) == false;
}
};

Expand Down