fix 1006 command wim-show tries to load json twice 51/8551/2
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 3 Feb 2020 14:48:59 +0000 (14:48 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 3 Feb 2020 14:54:08 +0000 (14:54 +0000)
Change-Id: Ie444c6856c2541d207432ca98d0cbedccd91c192
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osmclient/sol005/wim.py

index 90632c6..f9d2431 100644 (file)
@@ -235,7 +235,7 @@ class Wim(object):
                 resp =  json.loads(resp)
             if not resp or '_id' not in resp:
                 raise ClientException('failed to get wim info: '.format(resp))
-            return json.loads(resp)
+            return resp
         except NotFound:
             raise NotFound("wim '{}' not found".format(name))