Commit 6e55514a authored by Daniel Smith's avatar Daniel Smith

Merge pull request #2167 from claire921/clean

Cleanup generic_scheduler
parents 1b9dbe10 0e989afa
......@@ -103,12 +103,12 @@ func getMinHosts(list HostPriorityList) []string {
// EqualPriority is a prioritizer function that gives an equal weight of one to all nodes
func EqualPriority(pod api.Pod, podLister PodLister, minionLister MinionLister) (HostPriorityList, error) {
nodes, err := minionLister.List()
result := []HostPriority{}
if err != nil {
fmt.Errorf("failed to list nodes: %v", err)
return []HostPriority{}, err
}
result := []HostPriority{}
for _, minion := range nodes.Items {
result = append(result, HostPriority{
host: minion.Name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment