Skip to content

Commit 9f9fa90

Browse files
authored
Merge pull request #10 from nadirollo/nested-levels
Allow to recurse nested levels
2 parents 83dac06 + 9600d9a commit 9f9fa90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consul_kv/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_kv(k=None, recurse=False, endpoint=DEFAULT_KV_ENDPOINT, timeout=socket._
9696
mapping = {
9797
# values are stored base64 encoded in consul, they
9898
# are decoded before returned by this function.
99-
r['Key']: b64decode(r['Value']).decode('utf-8') for r in result
99+
r['Key']: b64decode(r['Value']).decode('utf-8') for r in result if r['Value']
100100
}
101101
return mapping
102102

0 commit comments

Comments
 (0)