Skip to content

Commit 55293a1

Browse files
committed
fix(MongoBinaryDownloadUrl): getRhelVersionString: fallback to "70"
1 parent af33d00 commit 55293a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
264264
* Get the version string for Red Hat Enterprise Linux
265265
* @param os LinuxOS Object
266266
*/
267+
// TODO: add tests for RHEL
267268
getRhelVersionString(os: LinuxOS): string {
268269
let name = 'rhel';
269270
const { release } = os;
@@ -279,6 +280,12 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
279280
name += '55';
280281
}
281282
}
283+
// fallback
284+
if (name === 'rhel') {
285+
log('getRhelVersionString: falling back to "70"');
286+
// fallback to "70", because that is what currently is supporting 3.6 to 5.0 and should work with many
287+
name += '70';
288+
}
282289

283290
return name;
284291
}

0 commit comments

Comments
 (0)