X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Fpdud.py;h=e8ba9c4d264fe6ebaddd4f2cc3e52c48005904a1;hb=771907b5b7087df80e51d494b0c77263a62f47da;hp=b59b91dd048f4df41a9a5d522a65320ba06e9767;hpb=2cc451122a28672aa0b928688fc76d633d5ece81;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/pdud.py b/osmclient/sol005/pdud.py index b59b91d..e8ba9c4 100644 --- a/osmclient/sol005/pdud.py +++ b/osmclient/sol005/pdud.py @@ -89,16 +89,13 @@ class Pdu(object): def create(self, pdu, update_endpoint=None): headers= self._client._headers - headers['Content-Type'] = 'text/plain' + headers['Content-Type'] = 'application/yaml' http_header = ['{}: {}'.format(key,val) for (key,val) in list(headers.items())] self._http.set_http_header(http_header) if update_endpoint: http_code, resp = self._http.put_cmd(endpoint=update_endpoint, postfields_dict=pdu) else: - self._apiResource = '/pdu_descriptors_content' - self._apiBase = '{}{}{}'.format(self._apiName, - self._apiVersion, self._apiResource) endpoint = self._apiBase #endpoint = '{}{}'.format(self._apiBase,ow_string) http_code, resp = self._http.post_cmd(endpoint=endpoint, postfields_dict=pdu)