Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
simplifying pod fit for existing nodes (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicki-c authored Jun 8, 2017
1 parent f93b5ef commit 88a6255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoscaler/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def scale(self, pods_to_schedule, all_nodes, asgs, running_insts_map, pending_re
for pod in pods:
fitting = None
for node in cached_live_nodes:
if node.unschedulable and not node.can_uncordon:
if node.unschedulable:
continue
if node.is_match(pod) and node.can_fit(pod.resources):
fitting = node
Expand Down

0 comments on commit 88a6255

Please sign in to comment.