diff --git a/lib/consul/index.js b/lib/consul/index.js index b1fbdad..5985a84 100644 --- a/lib/consul/index.js +++ b/lib/consul/index.js @@ -308,7 +308,7 @@ var get_kvs = function(branch, file, cb) { logger.trace('Getting tree for key %s', key_name); // Load all sub-keys as a flattened tree of KV pairs - consul.kv.get({'key': key_name, token: token, recurse: true}, function(err, kvs, res) { + consul.kv.get({'key': key_name + '/', token: token, recurse: true}, function(err, kvs, res) { if (err) return cb('Failed to get tree for key ' + key_name + ' due to ' + err, undefined); var tree = []