diff --git a/store/store.go b/store/store.go index 66a535aaa..c9c2b0626 100644 --- a/store/store.go +++ b/store/store.go @@ -313,7 +313,12 @@ func (s *Store) Get(key string) ([]byte, error) { return nil, err } - if len(resps) == 1 { + key = path.Clean("/" + key) + + // If the number of resps == 1 and the response key + // is the key we query, a signal key-value should + // be returned + if len(resps) == 1 && resps[0].Key == key { return json.Marshal(resps[0]) }