Scheduler Reduce functions can use PriorityMetadata

This commit is contained in:
gmarek
2016-10-26 14:59:08 +02:00
parent 85fe0f1aad
commit c80d308128
5 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ func priorityFunction(mapFn algorithm.PriorityMapFunction, reduceFn algorithm.Pr
result = append(result, hostResult)
}
if reduceFn != nil {
if err := reduceFn(pod, result); err != nil {
if err := reduceFn(pod, nil, result); err != nil {
return nil, err
}
}