Fixed insecure passing in keystone module

As Keystone Client is passed already created Session object (L603), it doesn't
take into an account client_args, so Session is created with default verify
value.

Change-Id: I428a80cfb99821053d27dcf8a4b130377467d469
This commit is contained in:
Jakub Jursa 2018-03-19 14:32:04 +01:00
parent 966cb309e4
commit 884500daae

View File

@ -609,7 +609,7 @@ class ManageKeystone(object):
if variables_dict.pop('ignore_catalog'):
client_args.update(endpoint_override=endpoint)
auth = v3.Password(**auth_args)
sess = session.Session(auth=auth)
sess = session.Session(auth=auth, verify=(not insecure))
self.keystone = client.Client(session=sess,
**client_args)