mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
use 'add_certificate_path_to_mongo_url' on openpype start
This commit is contained in:
parent
76dd29daa7
commit
be191b0c93
2 changed files with 5 additions and 1 deletions
|
|
@ -79,6 +79,9 @@ def validate_mongo_connection(cnx: str) -> (bool, str):
|
|||
kwargs = {
|
||||
"serverSelectionTimeoutMS": 2000
|
||||
}
|
||||
# Add certificate path if should be required
|
||||
cnx = add_certificate_path_to_mongo_url(cnx)
|
||||
|
||||
try:
|
||||
client = MongoClient(cnx, **kwargs)
|
||||
client.server_info()
|
||||
|
|
|
|||
3
start.py
3
start.py
|
|
@ -193,6 +193,7 @@ import igniter # noqa: E402
|
|||
from igniter import BootstrapRepos # noqa: E402
|
||||
from igniter.tools import (
|
||||
get_openpype_path_from_db,
|
||||
add_certificate_path_to_mongo_url,
|
||||
validate_mongo_connection
|
||||
) # noqa
|
||||
from igniter.bootstrap_repos import OpenPypeVersion # noqa: E402
|
||||
|
|
@ -585,7 +586,7 @@ def _determine_mongodb() -> str:
|
|||
except ValueError:
|
||||
raise RuntimeError("Missing MongoDB url")
|
||||
|
||||
return openpype_mongo
|
||||
return add_certificate_path_to_mongo_url(openpype_mongo)
|
||||
|
||||
|
||||
def _initialize_environment(openpype_version: OpenPypeVersion) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue