Merge pull request #818 from vicki-c/master
fixing etcd missing key error
This commit is contained in:
commit
9976d86cc6
|
@ -53,8 +53,8 @@ var (
|
|||
// errorIsMissingKey returns true if the given error is an etcd error with an
|
||||
// error code corresponding to a missing key.
|
||||
func errorIsMissingKey(err error) bool {
|
||||
etcdErr, ok := err.(*client.Error)
|
||||
return ok && etcdErr.Code == 100
|
||||
etcdErr, ok := err.(client.Error)
|
||||
return ok && etcdErr.Code == client.ErrorCodeKeyNotFound
|
||||
}
|
||||
|
||||
// EtcdBackend is a physical backend that stores data at specific
|
||||
|
|
Loading…
Reference in a new issue