Merge pull request #78461 from mysunshine92/correct-return-information-scheduler

correct the return information in scheduler.go
This commit is contained in:
Kubernetes Prow Robot 2019-10-08 09:37:13 -07:00 committed by GitHub
commit 1501de6a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,7 +391,7 @@ func (sched *Scheduler) schedule(pod *v1.Pod, state *framework.CycleState) (core
sched.recordSchedulingFailure(pod, err, v1.PodReasonUnschedulable, err.Error())
return core.ScheduleResult{}, err
}
return result, err
return result, nil
}
// preempt tries to create room for a pod that has failed to schedule, by preempting lower priority pods if possible.