Unverified Commit fe4ca268 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #68215 from tanshanshan/fixtypo

fix error info
parents 59ad8c0f 19c9df95
...@@ -80,7 +80,7 @@ func (cml *ConfigMapLock) Create(ler LeaderElectionRecord) error { ...@@ -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 {
......
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