Skip to content

Commit c739284

Browse files
fix: fix construct mongodb urls [run-int-tests]
1 parent 8d84b0b commit c739284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

construct-redis-url.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if [ -z "$REDIS_URL" ] || [ -z "$CELERY_BROKER_URL" ]; then
6464
# Build MongoDB URI from environment variables
6565
if [ -n "$MONGODB_PASSWORD" ]; then
6666
# With authentication
67-
if [ "$MONGODB_MODE" = "replicaset" ]; then
67+
if [ -n "$MONGODB_REPLICA_SET" ]; then
6868
# Replica set
6969
export MONGO_URI="mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@${MONGODB_HOST}/${MONGODB_DATABASE}?replicaSet=${MONGODB_REPLICA_SET}&authSource=${MONGODB_AUTH_SOURCE:-admin}&readPreference=primary"
7070
else

0 commit comments

Comments
 (0)