From 761468378d692d694e7c77b6cfe1c574790a1f78 Mon Sep 17 00:00:00 2001 From: tsnuggs Date: Thu, 6 Jul 2017 08:36:23 -0600 Subject: [PATCH] Fix the put command so it works. --- cp_lib/cs_client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cp_lib/cs_client.py b/cp_lib/cs_client.py index e8a076b9..97200a72 100644 --- a/cp_lib/cs_client.py +++ b/cp_lib/cs_client.py @@ -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,