Skip to content

Commit

Permalink
Places localNode setter in correct place
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Jul 28, 2023
1 parent 82966b6 commit 641d36e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,9 @@ public void onNodeStarted(DiscoveryNode localNode) {
if (!SSLConfig.isSslOnlyMode() && !client && !disabled) {
cr.initOnNodeStart();
}
si.setLocalNode(localNode); // set localNode
if (!SSLConfig.isSslOnlyMode() && si != null) {
si.setLocalNode(localNode); // set localNode
}
final Set<ModuleInfo> securityModules = ReflectionHelper.getModulesLoaded();
log.info("{} OpenSearch Security modules loaded so far: {}", securityModules.size(), securityModules);
}
Expand Down

0 comments on commit 641d36e

Please sign in to comment.