From c9501128b61089ca19f5564f1bed0e6d63843cc3 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Wed, 24 Dec 2014 00:01:54 -0500 Subject: [PATCH] Scheduler is printing the wrong value when no default algorithms available --- plugin/pkg/scheduler/factory/plugins.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/pkg/scheduler/factory/plugins.go b/plugin/pkg/scheduler/factory/plugins.go index ca77bb019f9..af62439cc55 100644 --- a/plugin/pkg/scheduler/factory/plugins.go +++ b/plugin/pkg/scheduler/factory/plugins.go @@ -110,7 +110,7 @@ func GetAlgorithmProvider(name string) (*AlgorithmProviderConfig, error) { var provider AlgorithmProviderConfig provider, ok := algorithmProviderMap[name] if !ok { - return nil, fmt.Errorf("plugin '%v' has not been registered", provider) + return nil, fmt.Errorf("plugin %q has not been registered", name) } return &provider, nil @@ -124,7 +124,7 @@ func getFitPredicateFunctions(keys util.StringSet) ([]algorithm.FitPredicate, er for _, key := range keys.List() { function, ok := fitPredicateMap[key] if !ok { - return nil, fmt.Errorf("Invalid predicate key %s specified - no corresponding function found", key) + return nil, fmt.Errorf("Invalid predicate key %q specified - no corresponding function found", key) } predicates = append(predicates, function) }