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
/
pdud.py
diff --git
a/osmclient/sol005/pdud.py
b/osmclient/sol005/pdud.py
index
e47dadd
..
942516c
100644
(file)
--- a/
osmclient/sol005/pdud.py
+++ b/
osmclient/sol005/pdud.py
@@
-118,10
+118,7
@@
class Pdu(object):
self._client.get_token()
headers = self._client._headers
headers["Content-Type"] = "application/yaml"
self._client.get_token()
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)
if update_endpoint:
http_code, resp = self._http.patch_cmd(
endpoint=update_endpoint, postfields_dict=pdu
if update_endpoint:
http_code, resp = self._http.patch_cmd(
endpoint=update_endpoint, postfields_dict=pdu