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