correct the return information in scheduler.go

This commit is contained in:
yameiwang 2019-05-29 18:41:18 +08:00
parent 3ccb63bb1b
commit 7a380ebce9

View File

@ -287,7 +287,7 @@ func (sched *Scheduler) schedule(pod *v1.Pod) (core.ScheduleResult, error) {
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.