Skip to content
This repository was archived by the owner on Apr 15, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions consul/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def get(
"LockIndex": 200,
"Key": "foo",
"Flags": 0,
"Value": "bar",
"Value": b"bar",
"Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e"
}

Expand Down Expand Up @@ -680,7 +680,7 @@ def put(self, payload):
"KV": {
"Verb": "<verb>",
"Key": "<key>",
"Value": "<Base64-encoded blob of data>",
"Value": b"<Base64-encoded blob of data>",
"Flags": 0,
"Index": 0,
"Session": "<session id>"
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ creating server components - but it does serve as a base. It makes use of the

>>> index, data = c.kv.get('foo')
>>> data['Value']
'bar'
b'bar'

# this will block until there's an update or a timeout
>>> index, data = c.kv.get('foo', index=index)
Expand Down