Skip to content

Commit

Permalink
Merge pull request kubernetes#33349 from madhusudancs/etcd-precond-de…
Browse files Browse the repository at this point in the history
…ref-log

Automatic merge from submit-queue

Dereference the UID pointer for a readable error message.

cc @nikhiljindal @quinton-hoole @kubernetes/sig-cluster-federation
  • Loading branch information
Kubernetes Submit Queue authored Sep 23, 2016
2 parents 9b36bfa + c1f0d91 commit e05e866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/etcd3/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func checkPreconditions(key string, preconditions *storage.Preconditions, out ru
return storage.NewInternalErrorf("can't enforce preconditions %v on un-introspectable object %v, got error: %v", *preconditions, out, err)
}
if preconditions.UID != nil && *preconditions.UID != objMeta.UID {
errMsg := fmt.Sprintf("Precondition failed: UID in precondition: %v, UID in object meta: %v", preconditions.UID, objMeta.UID)
errMsg := fmt.Sprintf("Precondition failed: UID in precondition: %v, UID in object meta: %v", *preconditions.UID, objMeta.UID)
return storage.NewInvalidObjError(key, errMsg)
}
return nil
Expand Down

0 comments on commit e05e866

Please sign in to comment.