diff --git a/igniter/tools.py b/igniter/tools.py index af5cbe70a9..df583fbb51 100644 --- a/igniter/tools.py +++ b/igniter/tools.py @@ -40,7 +40,7 @@ def should_add_certificate_path_to_mongo_url(mongo_url): add_certificate = False # Check if url 'ssl' or 'tls' are set to 'true' for key in ("ssl", "tls"): - if key in query and "true" in query["ssl"]: + if key in query and "true" in query[key]: add_certificate = True break diff --git a/openpype/client/mongo/mongo.py b/openpype/client/mongo/mongo.py index ad85782996..ce8d35fcdd 100644 --- a/openpype/client/mongo/mongo.py +++ b/openpype/client/mongo/mongo.py @@ -135,7 +135,7 @@ def should_add_certificate_path_to_mongo_url(mongo_url): add_certificate = False # Check if url 'ssl' or 'tls' are set to 'true' for key in ("ssl", "tls"): - if key in query and "true" in query["ssl"]: + if key in query and "true" in query[key]: add_certificate = True break