projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove set_default_params method from client.py
[osm/osmclient.git]
/
osmclient
/
sol005
/
nsi.py
diff --git
a/osmclient/sol005/nsi.py
b/osmclient/sol005/nsi.py
index
999959e
..
b9d5e4b
100644
(file)
--- a/
osmclient/sol005/nsi.py
+++ b/
osmclient/sol005/nsi.py
@@
-145,7
+145,6
@@
class Nsi(object):
admin_status="ENABLED",
wait=False,
):
admin_status="ENABLED",
wait=False,
):
-
self._logger.debug("")
self._client.get_token()
nst = self._client.nst.get(nst_name)
self._logger.debug("")
self._client.get_token()
nst = self._client.nst.get(nst_name)
@@
-261,10
+260,7
@@
class Nsi(object):
)
headers = self._client._headers
headers["Content-Type"] = "application/yaml"
)
headers = self._client._headers
headers["Content-Type"] = "application/yaml"
- http_header = [
- "{}: {}".format(key, val) for (key, val) in list(headers.items())
- ]
- self._http.set_http_header(http_header)
+ self._http.set_http_header(headers)
http_code, resp = self._http.post_cmd(
endpoint=self._apiBase, postfields_dict=nsi
)
http_code, resp = self._http.post_cmd(
endpoint=self._apiBase, postfields_dict=nsi
)