Skip to content

Commit

Permalink
Move to using cas for setting a value (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Mar 13, 2015
1 parent bcd19bd commit 983be55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consulate/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def _set_item(self, item, value, flags=None):
index = response.body.get('ModifyIndex')
if response.body.get('Value') == value:
return True
query_params = {'index': index}
query_params = {'cas': index}
if flags is not None:
query_params['flags'] = flags
response = self._adapter.put(self._build_uri([item], query_params),
Expand Down

0 comments on commit 983be55

Please sign in to comment.