fix sol005 client so that delete_cmd output is processed in the caller function
[osm/osmclient.git] / osmclient / sol005 / sdncontroller.py
index 0639559..7833fbd 100644 (file)
@@ -62,6 +62,8 @@ class SdnController(object):
     def delete(self, name):
         sdn_controller = self.get(name)
         http_code, resp = self._http.delete_cmd('{}/{}'.format(self._apiBase,sdn_controller['_id']))
+        if resp:
+            resp = json.loads(resp)
         #print 'RESP: {}'.format(resp)
         if http_code == 202:
             print 'Deletion in progress'