Skip to content

Commit

Permalink
fix security_solution config
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Oct 21, 2021
1 parent 7e95da3 commit 72ed91a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x-pack/plugins/security_solution/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,11 @@ export const configSchema = schema.object({
export type ConfigSchema = TypeOf<typeof configSchema>;

export type ConfigType = ConfigSchema & {
kibanaIndex: string;
experimentalFeatures: ExperimentalFeatures;
};

export const createConfig = (context: PluginInitializerContext): ConfigType => {
const globalConfig = context.config.legacy.get();
const pluginConfig = context.config.get<TypeOf<typeof configSchema>>();

const kibanaIndex = globalConfig.kibana.index;
const experimentalFeatures = parseExperimentalConfigValue(pluginConfig.enableExperimental);

return {
Expand Down

0 comments on commit 72ed91a

Please sign in to comment.