From 051dfb1ba255a87aa1efd90dc17d731894da478a Mon Sep 17 00:00:00 2001 From: Klaus Ma Date: Thu, 17 Aug 2017 07:16:07 +0800 Subject: [PATCH] address review comments. --- plugin/pkg/scheduler/factory/plugins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/scheduler/factory/plugins.go b/plugin/pkg/scheduler/factory/plugins.go index cbf1eb9df0c..48cdca881a4 100644 --- a/plugin/pkg/scheduler/factory/plugins.go +++ b/plugin/pkg/scheduler/factory/plugins.go @@ -323,7 +323,7 @@ func getFitPredicateFunctions(names sets.String, args PluginFactoryArgs) (map[st } // Always include mandatory fit predicates. - for _, name := range mandatoryFitPredicates.List() { + for name := range mandatoryFitPredicates { if factory, found := fitPredicateMap[name]; found { predicates[name] = factory(args) }