Merge "Fix login when using python 3"

This commit is contained in:
Zuul 2018-03-05 17:22:40 +00:00 committed by Gerrit Code Review
commit f45708e194
1 changed files with 5 additions and 1 deletions

View File

@ -133,7 +133,11 @@ class OpenIdClient(object):
verify_response = requests.post(CONF.oauth.openid_url,
data=verify_params)
verify_data_tokens = verify_response.content.split()
content = verify_response.content
if isinstance(content, bytes):
content = content.decode('utf-8')
verify_data_tokens = content.split()
verify_dict = dict((token.split(":")[0], token.split(":")[1])
for token in verify_data_tokens)