Skip to content

Commit 30d46fa

Browse files
authored
TUNE-99 Add environment variable to choose version link in drivers-evergreen-tools (#611)
1 parent 6411cbb commit 30d46fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.evergreen/mongodl.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,10 @@ def refresh_full_json(self) -> None:
651651
"""
652652
Sync the content of the MongoDB full.json downloads list.
653653
"""
654+
default_source = "https://downloads.mongodb.org/full.json"
655+
download_source = os.environ.get("MONGODB_DOWNLOAD_SOURCE", default_source)
654656
with self._db.transaction():
655-
dl = self.download_file("https://downloads.mongodb.org/full.json")
657+
dl = self.download_file(download_source)
656658
if not dl.is_changed:
657659
# We still have a good cache
658660
return

0 commit comments

Comments
 (0)