Skip to content

Commit c983e08

Browse files
committed
Remove workaround for mongo-orchestration 268
mongodb-labs/mongo-orchestration#268
1 parent 760ba5b commit c983e08

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

.github/workflows/mongodb_settings.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import os
22

3-
from pymongo.uri_parser import parse_uri
4-
53
if mongodb_uri := os.getenv("MONGODB_URI"):
64
db_settings = {
75
"ENGINE": "django_mongodb_backend",
86
"HOST": mongodb_uri,
97
}
10-
# Workaround for https://github.com/mongodb-labs/mongo-orchestration/issues/268
11-
uri = parse_uri(mongodb_uri)
12-
if uri.get("username") and uri.get("password"):
13-
db_settings["OPTIONS"] = {"tls": True, "tlsAllowInvalidCertificates": True}
148
DATABASES = {
159
"default": {**db_settings, "NAME": "djangotests"},
1610
"other": {**db_settings, "NAME": "djangotests-other"},

0 commit comments

Comments
 (0)