From c3311744c52e040ca2e3d98107df827e0fda80bd Mon Sep 17 00:00:00 2001 From: Sergiusz Urbaniak Date: Tue, 20 Oct 2015 14:48:14 -0700 Subject: [PATCH] scheduler: correct doc in doSchedule --- contrib/mesos/pkg/scheduler/plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/mesos/pkg/scheduler/plugin.go b/contrib/mesos/pkg/scheduler/plugin.go index a1bd3450434..65968b35d73 100644 --- a/contrib/mesos/pkg/scheduler/plugin.go +++ b/contrib/mesos/pkg/scheduler/plugin.go @@ -306,7 +306,8 @@ func (k *kubeScheduler) Schedule(pod *api.Pod, unused algorithm.NodeLister) (str } } -// Call ScheduleFunc and subtract some resources, returning the name of the machine the task is scheduled on +// doSchedule schedules the given task and returns the machine the task is scheduled on +// or an error if the scheduling failed. func (k *kubeScheduler) doSchedule(task *podtask.T) (string, error) { var offer offers.Perishable var err error