Skip to content

Commit

Permalink
check that node.roles is defined
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Minde <[email protected]>
  • Loading branch information
Julian Minde authored and mindejulian committed Jan 19, 2024
1 parent 5ecad79 commit 031eab7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ function defaultNodeFilter(node) {
// avoid cluster_manager or master only nodes
// TODO: remove role check on master when master is not supported
if (
node.roles &&
(node.roles.cluster_manager === true || node.roles.master === true) &&
node.roles.data === false &&
node.roles.ingest === false
Expand Down

0 comments on commit 031eab7

Please sign in to comment.