Skip to content

Commit 21e8b26

Browse files
committed
add the "sorted" parameter to read()
1 parent 000c7c6 commit 21e8b26

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/etcd/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Client(object):
2424
_MPOST = 'POST'
2525
_MDELETE = 'DELETE'
2626
_comparison_conditions = ['prevValue', 'prevIndex', 'prevExist']
27-
_read_options = ['recursive', 'wait', 'waitIndex']
27+
_read_options = ['recursive', 'wait', 'waitIndex', 'sorted']
2828

2929
def __init__(
3030
self,
@@ -279,6 +279,8 @@ def read(self, key, **kwdargs):
279279
280280
waitIndex (int): The index to fetch results from.
281281
282+
sorted (bool): Sort the output keys (alphanumerically)
283+
282284
Returns:
283285
client.EtcdResult (or an array of client.EtcdResult if a
284286
subtree is queried)

0 commit comments

Comments
 (0)