mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use 'tlsCAFile' instead of deprecated 'ssl_ca_certs' (#5080)
This commit is contained in:
parent
3869a6f1d0
commit
689d29abff
2 changed files with 3 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ def validate_mongo_connection(cnx: str) -> (bool, str):
|
|||
}
|
||||
# Add certificate path if should be required
|
||||
if should_add_certificate_path_to_mongo_url(cnx):
|
||||
kwargs["ssl_ca_certs"] = certifi.where()
|
||||
kwargs["tlsCAFile"] = certifi.where()
|
||||
|
||||
try:
|
||||
client = MongoClient(cnx, **kwargs)
|
||||
|
|
@ -147,7 +147,7 @@ def get_openpype_global_settings(url: str) -> dict:
|
|||
"""
|
||||
kwargs = {}
|
||||
if should_add_certificate_path_to_mongo_url(url):
|
||||
kwargs["ssl_ca_certs"] = certifi.where()
|
||||
kwargs["tlsCAFile"] = certifi.where()
|
||||
|
||||
try:
|
||||
# Create mongo connection
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ class OpenPypeMongoConnection:
|
|||
"serverSelectionTimeoutMS": timeout
|
||||
}
|
||||
if should_add_certificate_path_to_mongo_url(mongo_url):
|
||||
kwargs["ssl_ca_certs"] = certifi.where()
|
||||
kwargs["tlsCAFile"] = certifi.where()
|
||||
|
||||
mongo_client = pymongo.MongoClient(mongo_url, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue