Skip to content

Commit

Permalink
default to jammy if not there
Browse files Browse the repository at this point in the history
  • Loading branch information
medyagh committed Jan 22, 2025
1 parent 1d1a188 commit cea3367
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const installCriDocker = () => __awaiter(void 0, void 0, void 0, function* () {
yield (0, exec_1.exec)('lsb_release', ['--short', '--codename'], options);
codename = codename.trim();
// Check if the codename is one of the expected values
// because Cri-dockerd doesnt support "noble" yet
// because Cri-dockerd doesnt support "noble" yet, we will default to "jammy"
if (!['bionic', 'focal', 'jammy'].includes(codename)) {
codename = 'jammy';
}
Expand Down
2 changes: 1 addition & 1 deletion src/none-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const installCriDocker = async (): Promise<void> => {
codename = codename.trim()

// Check if the codename is one of the expected values
// because Cri-dockerd doesnt support "noble" yet
// because Cri-dockerd doesnt support "noble" yet, we will default to "jammy"
if (!['bionic', 'focal', 'jammy'].includes(codename)) {
codename = 'jammy'
}
Expand Down

0 comments on commit cea3367

Please sign in to comment.