Skip to content

Commit

Permalink
Merge pull request #884 from shtripat/expand-cluster-issue
Browse files Browse the repository at this point in the history
Added logic to remove current node from nodes list for expansion
  • Loading branch information
nthomas-redhat committed Mar 23, 2018
2 parents 052f746 + 5a976de commit 9d98386
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ def run(self):

job_ids = []
new_peers = []
# Remove the current node from list as its already participating
# in cluster for sure
node_ids.remove(NS.node_context.node_id)
for node_id in node_ids:
_cnc = NS.tendrl.objects.ClusterNodeContext(
node_id=node_id
Expand Down

0 comments on commit 9d98386

Please sign in to comment.