Merge "Allow to work in secure mode without certificate" into stable/pike

This commit is contained in:
Zuul 2017-10-20 22:09:01 +00:00 committed by Gerrit Code Review
commit 995ec0bd17
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def authenticate(**kwargs):
verify = None
if urllib.parse.urlparse(access_token_endpoint).scheme == "https":
verify = False if insecure else cacert
verify = False if insecure else cacert if cacert else True
body = {
'grant_type': 'password',