projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update requirements-dev to point to branch and refresh updates
[osm/osmclient.git]
/
osmclient
/
sol005
/
client.py
diff --git
a/osmclient/sol005/client.py
b/osmclient/sol005/client.py
index
0cbc80a
..
5146fe2
100644
(file)
--- a/
osmclient/sol005/client.py
+++ b/
osmclient/sol005/client.py
@@
-18,7
+18,6
@@
OSM SOL005 client API
"""
OSM SOL005 client API
"""
-# from osmclient.v1 import vca
from osmclient.sol005 import vnfd
from osmclient.sol005 import nsd
from osmclient.sol005 import nst
from osmclient.sol005 import vnfd
from osmclient.sol005 import nsd
from osmclient.sol005 import nst
@@
-77,10
+76,7
@@
class Client(object):
)
self._headers["Accept"] = "application/json"
self._headers["Content-Type"] = "application/yaml"
)
self._headers["Accept"] = "application/json"
self._headers["Content-Type"] = "application/yaml"
- http_header = [
- "{}: {}".format(key, val) for (key, val) in list(self._headers.items())
- ]
- self._http_client.set_http_header(http_header)
+ self._http_client.set_http_header(self._headers)
self.vnfd = vnfd.Vnfd(self._http_client, client=self)
self.nsd = nsd.Nsd(self._http_client, client=self)
self.vnfd = vnfd.Vnfd(self._http_client, client=self)
self.nsd = nsd.Nsd(self._http_client, client=self)
@@
-107,7
+103,7
@@
class Client(object):
self.utils = utils.Utils(http_client, **kwargs)
"""
self.utils = utils.Utils(http_client, **kwargs)
"""
- def get_token(self, pwd_change=
Non
e):
+ def get_token(self, pwd_change=
Fals
e):
self._logger.debug("")
if self._token is None:
postfields_dict = {
self._logger.debug("")
if self._token is None:
postfields_dict = {
@@
-137,11
+133,7
@@
class Client(object):
if self._token is not None:
self._headers["Authorization"] = "Bearer {}".format(self._token)
if self._token is not None:
self._headers["Authorization"] = "Bearer {}".format(self._token)
- http_header = [
- "{}: {}".format(key, val)
- for (key, val) in list(self._headers.items())
- ]
- self._http_client.set_http_header(http_header)
+ self._http_client.set_http_header(self._headers)
return token
def get_version(self):
return token
def get_version(self):