Use of PATCH method instead of PUT for projects
[osm/osmclient.git] / osmclient / sol005 / sdncontroller.py
index 690fa07..4f3ced4 100644 (file)
@@ -88,7 +88,7 @@ class SdnController(object):
         self._client.get_token()
         sdnc = self.get(name)
         sdnc_id_for_wait = self._get_id_for_wait(name)
-        http_code, resp = self._http.put_cmd(endpoint='{}/{}'.format(self._apiBase,sdnc['_id']),
+        http_code, resp = self._http.patch_cmd(endpoint='{}/{}'.format(self._apiBase,sdnc['_id']),
                                        postfields_dict=sdn_controller)
         # print('HTTP CODE: {}'.format(http_code))
         # print('RESP: {}'.format(resp))