refactor(core): Port license config (#11428)

This commit is contained in:
Iván Ovejero
2024-10-28 10:52:31 +01:00
committed by GitHub
parent cb7c4d29a6
commit 12d218ea38
10 changed files with 98 additions and 75 deletions

View File

@@ -199,7 +199,7 @@ export class Start extends BaseCommand {
await this.initOrchestration();
this.logger.debug('Orchestration init complete');
if (!config.getEnv('license.autoRenewEnabled') && this.instanceSettings.isLeader) {
if (!this.globalConfig.license.autoRenewalEnabled && this.instanceSettings.isLeader) {
this.logger.warn(
'Automatic license renewal is disabled. The license will not renew automatically, and access to licensed features may be lost!',
);