Merge "Add cacert to manilaclient"

This commit is contained in:
Zuul 2023-10-24 13:20:38 +00:00 committed by Gerrit Code Review
commit 26de8973b2

View File

@ -30,7 +30,10 @@ CONF = config.CONF
class ManilaClientFixture(_client.OpenstackClientFixture): class ManilaClientFixture(_client.OpenstackClientFixture):
def init_client(self, session): def init_client(self, session):
return manilaclient.Client(session=session) cacert = (session.cert or CONF.tobiko.tripleo.undercloud_cacert_file
if 'https://' in session.auth.auth_url
else None)
return manilaclient.Client(session=session, cacert=cacert)
class ManilaClientManager(_client.OpenstackClientManager): class ManilaClientManager(_client.OpenstackClientManager):