Skip to content

Commit

Permalink
Add cafile option to the keystone section
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
  • Loading branch information
gabriel-samfira committed Jul 18, 2024
1 parent 8814eed commit ba2b24b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions coriolis/keystone.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
default=None,
help='Default auth URL to be used when not specified in the'
' migration\'s connection info.'),
cfg.StrOpt('cafile',
default=None,
help='The CA file used to validate openstack service'
' API endpoints.'),
cfg.IntOpt('identity_api_version',
min=2, max=3,
default=2,
Expand Down Expand Up @@ -127,6 +131,10 @@ def create_keystone_session(ctxt, connection_info={}):
"password": password,
}

cafile = CONF.keystone.cafile
if cafile and cafile != "":
verify = cafile

if not auth:
project_name = connection_info.get("project_name", ctxt.project_name)

Expand Down

0 comments on commit ba2b24b

Please sign in to comment.