Skip to content

Commit

Permalink
Merge pull request #1559 from threefoldtech/development_fix_network_n…
Browse files Browse the repository at this point in the history
…odes

if no nodes added don't update the network
  • Loading branch information
xmonader committed Oct 29, 2020
2 parents 2a0b03a + 8b14cd6 commit fa0082e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jumpscale/sals/reservation_chatflow/deployer.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ def add_node(self, node, pool_id):

def add_multiple_nodes(self, node_ids, pool_ids):
used_ip_ranges = set()
existing_nodes = []
existing_nodes = set()
for workload in self.network_workloads:
used_ip_ranges.add(workload.iprange)
for peer in workload.peers:
used_ip_ranges.add(peer.iprange)
if workload.info.node_id in node_ids:
existing_nodes.append(workload.info.node_id)
existing_nodes.add(workload.info.node_id)

if len(existing_nodes) == len(node_ids):
return
Expand Down

0 comments on commit fa0082e

Please sign in to comment.