Merge "Fix premature scheduling loop exit"

This commit is contained in:
Zuul 2021-02-26 20:15:01 +00:00 committed by Gerrit Code Review
commit 4ac8ec174e

View File

@ -353,7 +353,7 @@ func (ml *MachineList) scheduleIt(nodeRole airshipv1.VMRole, nodeCfg airshipv1.N
// If its in the list already for the constraint , theen this bmh is disqualified. Skip it // If its in the list already for the constraint , theen this bmh is disqualified. Skip it
if scheduleSet.Exists(bmhConstraintCondition) { if scheduleSet.Exists(bmhConstraintCondition) {
logger.Info("Constraint slot is alrady taken some BMH from this constraint is already allocated, skipping it") logger.Info("Constraint slot is alrady taken some BMH from this constraint is already allocated, skipping it")
break continue
} else { } else {
scheduleSet.Add(bmhConstraintCondition) scheduleSet.Add(bmhConstraintCondition)
} }