Merge "Make keystone verify configurable"
This commit is contained in:
commit
57ce15f268
@ -51,6 +51,7 @@
|
||||
# admin_user = octavia
|
||||
# admin_password = password
|
||||
# admin_tenant_name = service
|
||||
# insecure = False
|
||||
|
||||
[keystone_authtoken_v3]
|
||||
# If using Keystone v3
|
||||
|
@ -60,7 +60,8 @@ def get_session():
|
||||
|
||||
try:
|
||||
kc = client.Password(**kwargs)
|
||||
_SESSION = session.Session(auth=kc)
|
||||
_SESSION = session.Session(
|
||||
auth=kc, verify=not cfg.CONF.keystone_authtoken.insecure)
|
||||
except Exception:
|
||||
with excutils.save_and_reraise_exception():
|
||||
LOG.exception(_LE("Error creating Keystone session."))
|
||||
|
Loading…
Reference in New Issue
Block a user