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