Skip to content

Commit 1ec9ce9

Browse files
committed
fix error on django test suite run
1 parent 90b6b24 commit 1ec9ce9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/mongodb_settings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
PARSED_URI = parse_uri(os.getenv("MONGODB_URI")) if os.getenv("MONGODB_URI") else {}
66

77
# Temporary fix for https://github.com/mongodb-labs/mongo-orchestration/issues/268
8-
if PARSED_URI["USER"] and PARSED_URI["PASSWORD"]:
9-
PARSED_URI["OPTIONS"]["tls"] = True
10-
PARSED_URI["OPTIONS"]["tlsAllowInvalidCertificates"] = True
8+
if PARSED_URI.get("USER") and PARSED_URI.get("PASSWORD"):
9+
PARSED_URI["OPTIONS"].update({"tls": True, "tlsAllowInvalidCertificates": True})
1110

1211
DATABASES = {
1312
"default": {

0 commit comments

Comments
 (0)