Skip to content

Commit 9c18ee2

Browse files
authored
fix: license check in status tracker (#73)
1 parent b177e72 commit 9c18ee2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/utils/setup-status.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ import {
1313
} from "./configure-aws.ts";
1414
import { createEmitter } from "./emitter.ts";
1515
import { immediateOnce } from "./immediate-once.ts";
16-
import { checkIsLicenseValid, LICENSE_FILENAME } from "./license.ts";
16+
import {
17+
checkIsLicenseValid,
18+
activateLicense,
19+
LICENSE_FILENAME,
20+
} from "./license.ts";
1721
import type { UnwrapPromise } from "./promises.ts";
1822
import { checkSetupStatus } from "./setup.ts";
1923
import type { TimeTracker } from "./time-tracker.ts";
@@ -277,6 +281,10 @@ function createLicenseStatusTracker(
277281
"[setup-status.license]",
278282
[LOCALSTACK_AUTH_FILENAME, LICENSE_FILENAME], //TODO rewrite to depend on change in localStackAuthenticationTracker
279283
async () =>
280-
(await checkIsLicenseValid(outputChannel)) ? "ok" : "setup_required",
284+
(await activateLicense(outputChannel).then(() =>
285+
checkIsLicenseValid(outputChannel),
286+
))
287+
? "ok"
288+
: "setup_required",
281289
);
282290
}

0 commit comments

Comments
 (0)