Add cacert to manilaclient
On TLS-e environments, manila requests were rejected due to SSLCertVerificationError. With this patch, the path to the cerificate is passed to manilaclient and the requests are answered successfully. Change-Id: Id5437488d4ec1101c0b75ed04677ed4bf28f52e1
This commit is contained in:
parent
cc3c91acd7
commit
3d1bace079
|
@ -30,7 +30,10 @@ CONF = config.CONF
|
|||
class ManilaClientFixture(_client.OpenstackClientFixture):
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue