From 995d8d3380ee98b3118e99b6760429484fcbc62c Mon Sep 17 00:00:00 2001 From: tanshanshan Date: Thu, 17 Nov 2016 15:20:37 +0800 Subject: [PATCH] Update strategy.go --- pkg/registry/core/configmap/strategy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/configmap/strategy.go b/pkg/registry/core/configmap/strategy.go index 02539ed4dfd..ac4b24ce514 100644 --- a/pkg/registry/core/configmap/strategy.go +++ b/pkg/registry/core/configmap/strategy.go @@ -96,7 +96,7 @@ func MatchConfigMap(label labels.Selector, field fields.Selector) apistorage.Sel GetAttrs: func(obj runtime.Object) (labels.Set, fields.Set, error) { cfg, ok := obj.(*api.ConfigMap) if !ok { - return nil, nil, fmt.Errorf("given object is not of type ConfigMap") + return nil, nil, fmt.Errorf("given object is not a ConfigMap") } return labels.Set(cfg.ObjectMeta.Labels), ConfigMapToSelectableFields(cfg), nil