Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Append
/
character when fetching the kv
otherwise the operation fetches keys which do not EXACTLY match the request key. For example, having the following keys: `foo/bar` & `foo-test/bar` and fetching them with: `consul.kv.get({'key': 'foo', recurse:true}, function(err,kvs,res) {console.log(kvs);});` will return: ``` [ { LockIndex: 0, Key: 'foo/bar', Flags: 0, Value: 'test1', CreateIndex: 171, ModifyIndex: 171 }, { LockIndex: 0, Key: 'foo-test/bar', Flags: 0, Value: 'test2', CreateIndex: 10, ModifyIndex: 10 } ] ``` this change will avoid that problem.
- Loading branch information