Skip to content

Commit

Permalink
Fix the put command so it works.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsnuggs committed Jul 6, 2017
1 parent 2ab99e8 commit 7614683
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cp_lib/cs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ def put(self, base, value, query='', tree=0):
:param str query: ???
:param int tree: ???
"""
if isinstance(value, dict):
# convert dictionary to JSON without white-space
value = json.dumps(value).replace(' ', '')
value = json.dumps(value).replace(' ', '')

self._logger.debug("CSClient() PUT={} data={}".format(base, value))
self.last_url = "put\n{}\n{}\n{}\n{}\n".format(base, query,
Expand Down

0 comments on commit 7614683

Please sign in to comment.