Skip to content

Commit

Permalink
allow to start 0 instances
Browse files Browse the repository at this point in the history
  • Loading branch information
fliem authored and riccardomurri committed Jan 23, 2020
1 parent dcb9ec3 commit 3e3e759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def _check_cluster_size(self, min_nodes):
# finding all node groups with an unsatisfied amount of nodes
unsatisfied = 0
for kind, required in min_nodes.items():
available = len(self.nodes[kind])
available = len(self.nodes.get(kind, []))
if available < required:
log.error(
"Not enough nodes of kind `%s`:"
Expand Down

0 comments on commit 3e3e759

Please sign in to comment.