diff options
author | Fu Jinhua <fu.jinhua@zte.com.cn> | 2019-07-16 09:28:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-16 09:28:17 +0000 |
commit | d93ad2f92920ec939c7f2fb42ae624b83a9aa8f1 (patch) | |
tree | 7b952cd319d961b45c88b89859d01380507bce93 | |
parent | a9c7a87a003ed557ff421edf0f33739ae6f122bd (diff) | |
parent | a09c45912fb2413e8f8fb0ae296a585ff11d8744 (diff) |
Merge "resolve python2->python3 issues"
-rw-r--r-- | lcm/pub/utils/restcall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/pub/utils/restcall.py b/lcm/pub/utils/restcall.py index d59513ef..9fd81601 100644 --- 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) |