Code Review
/
vfc
/
nfvo
/
lcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
a9c7a87
)
Merge "resolve python2->python3 issues"
author
Fu Jinhua
<fu.jinhua@zte.com.cn>
Tue, 16 Jul 2019 09:28:17 +0000
(09:28 +0000)
committer
Gerrit Code Review
<gerrit@onap.org>
Tue, 16 Jul 2019 09:28:17 +0000
(09:28 +0000)
lcm/pub/utils/restcall.py
patch
|
blob
|
history
diff --git
a/lcm/pub/utils/restcall.py
b/lcm/pub/utils/restcall.py
index
d59513e
..
9fd8160
100644
(file)
--- a/
lcm/pub/utils/restcall.py
+++ b/
lcm/pub/utils/restcall.py
@@
-44,7
+44,7
@@
def call_req(base_url, user, passwd, auth_type, resource, method, content='', ad
full_url = combine_url(base_url, resource)
headers = {'content-type': 'application/json', 'accept': 'application/json'}
if user:
- headers['Authorization'] = 'Basic %s' % base64.b64encode(bytes('%s:%s' % (user, passwd), "utf-8"))
+ headers['Authorization'] = 'Basic %s' % base64.b64encode(bytes('%s:%s' % (user, passwd), "utf-8"))
.decode()
ca_certs = None
if additional_headers:
headers.update(additional_headers)