Merge pull request #68215 from tanshanshan/fixtypo

fix error info

Kubernetes-commit: fe4ca268d76288d21de89de14388b1d4e2f20bbc
This commit is contained in:
Kubernetes Publisher 2018-09-25 05:02:34 -07:00
commit e39833ec3c
2 changed files with 52 additions and 52 deletions

102
Godeps/Godeps.json generated
View File

@ -400,207 +400,207 @@
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting", "ImportPath": "k8s.io/apimachinery/pkg/api/apitesting",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer", "ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/fuzzer",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip", "ImportPath": "k8s.io/apimachinery/pkg/api/apitesting/roundtrip",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/equality", "ImportPath": "k8s.io/apimachinery/pkg/api/equality",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/errors", "ImportPath": "k8s.io/apimachinery/pkg/api/errors",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/meta", "ImportPath": "k8s.io/apimachinery/pkg/api/meta",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/api/resource", "ImportPath": "k8s.io/apimachinery/pkg/api/resource",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1", "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1beta1",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion", "ImportPath": "k8s.io/apimachinery/pkg/conversion",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams", "ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/fields", "ImportPath": "k8s.io/apimachinery/pkg/fields",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/labels", "ImportPath": "k8s.io/apimachinery/pkg/labels",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime", "ImportPath": "k8s.io/apimachinery/pkg/runtime",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema", "ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning", "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/selection", "ImportPath": "k8s.io/apimachinery/pkg/selection",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/types", "ImportPath": "k8s.io/apimachinery/pkg/types",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/cache", "ImportPath": "k8s.io/apimachinery/pkg/util/cache",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/clock", "ImportPath": "k8s.io/apimachinery/pkg/util/clock",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/diff", "ImportPath": "k8s.io/apimachinery/pkg/util/diff",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/errors", "ImportPath": "k8s.io/apimachinery/pkg/util/errors",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/framer", "ImportPath": "k8s.io/apimachinery/pkg/util/framer",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy", "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr", "ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/json", "ImportPath": "k8s.io/apimachinery/pkg/util/json",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch", "ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/naming", "ImportPath": "k8s.io/apimachinery/pkg/util/naming",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/net", "ImportPath": "k8s.io/apimachinery/pkg/util/net",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand", "ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime", "ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/sets", "ImportPath": "k8s.io/apimachinery/pkg/util/sets",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch", "ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation", "ImportPath": "k8s.io/apimachinery/pkg/util/validation",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field", "ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/wait", "ImportPath": "k8s.io/apimachinery/pkg/util/wait",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml", "ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/version", "ImportPath": "k8s.io/apimachinery/pkg/version",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/pkg/watch", "ImportPath": "k8s.io/apimachinery/pkg/watch",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect", "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
"Rev": "99c5fa21f87204c2875a7f7ba977895d79b35c44" "Rev": "7619dea5b21b9d40430236f2d21ce583150d579c"
}, },
{ {
"ImportPath": "k8s.io/kube-openapi/pkg/util/proto", "ImportPath": "k8s.io/kube-openapi/pkg/util/proto",

View File

@ -80,7 +80,7 @@ func (cml *ConfigMapLock) Create(ler LeaderElectionRecord) error {
// Update will update an existing annotation on a given resource. // Update will update an existing annotation on a given resource.
func (cml *ConfigMapLock) Update(ler LeaderElectionRecord) error { func (cml *ConfigMapLock) Update(ler LeaderElectionRecord) error {
if cml.cm == nil { if cml.cm == nil {
return errors.New("endpoint not initialized, call get or create first") return errors.New("configmap not initialized, call get or create first")
} }
recordBytes, err := json.Marshal(ler) recordBytes, err := json.Marshal(ler)
if err != nil { if err != nil {