X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Fclient.py;h=479fc9adda321781e6f9dea7b35ec51ee9a08889;hb=refs%2Fchanges%2F23%2F6323%2F4;hp=ca8f151dc25a8c8de479e95334b30e9616794727;hpb=e26c422590219f865d958a8537b8f6c0973ac703;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/client.py b/osmclient/sol005/client.py index ca8f151..479fc9a 100644 --- a/osmclient/sol005/client.py +++ b/osmclient/sol005/client.py @@ -58,9 +58,9 @@ class Client(object): if ro_host is None: ro_host = host - ro_http_client = http.Http('http://{}:{}/'.format(ro_host, ro_port)) + ro_http_client = http.Http('http://{}:{}/openmano'.format(ro_host, ro_port)) ro_http_client.set_http_header( - ['Accept: application/vnd.yand.data+json', + ['Accept: application/json', 'Content-Type: application/json']) self._http_client = http.Http( @@ -68,7 +68,7 @@ class Client(object): self._headers['Accept'] = 'application/json' self._headers['Content-Type'] = 'application/yaml' http_header = ['{}: {}'.format(key,val) - for (key,val) in self._headers.items()] + for (key,val) in list(self._headers.items())] self._http_client.set_http_header(http_header) token = self.get_token()