Skip to content

Commit

Permalink
Re-enable registry version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Nov 30, 2021
1 parent 338fe1a commit 2a20806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/fleet/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ export const config: PluginConfigDescriptor = {
outputs: PreconfiguredOutputsSchema,
agentIdVerificationEnabled: schema.boolean({ defaultValue: true }),
developer: schema.object({
// TODO: change default to false as soon as EPR issue fixed. Blocker for 8.0.
disableRegistryVersionCheck: schema.boolean({ defaultValue: true }),
disableRegistryVersionCheck: schema.boolean({ defaultValue: false }),
}),
}),
};
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/fleet/server/services/epm/registry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@ export async function fetchFile(filePath: string): Promise<Response> {
}

function setKibanaVersion(url: URL) {
// TODO: change default to false as soon as EPR issue fixed. Blocker for 8.0.
const disableVersionCheck =
appContextService.getConfig()?.developer?.disableRegistryVersionCheck ?? true;
appContextService.getConfig()?.developer?.disableRegistryVersionCheck ?? false;
if (disableVersionCheck) {
return;
}
Expand Down

0 comments on commit 2a20806

Please sign in to comment.