Skip to content

Commit

Permalink
fix new violations due to master merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Apr 21, 2022
1 parent a40bcdf commit 301ec95
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x-pack/plugins/cloud_security_posture/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ export class CspPlugin
>
{
private readonly logger: Logger;

constructor(initializerContext: PluginInitializerContext) {
this.logger = initializerContext.logger.get();
}

private readonly CspAppService = new CspAppService();

public setup(
Expand Down Expand Up @@ -88,11 +90,8 @@ export class CspPlugin
request: KibanaRequest
): Promise<PackagePolicy> => {
if (packagePolicy.package?.name === CIS_KUBERNETES_PACKAGE_NAME) {
await onPackagePolicyPostCreateCallback(
this.logger,
packagePolicy,
context.core.savedObjects.client
);
const soClient = (await context.core).savedObjects.client;
await onPackagePolicyPostCreateCallback(this.logger, packagePolicy, soClient);
}

return packagePolicy;
Expand All @@ -117,5 +116,6 @@ export class CspPlugin

return {};
}

public stop() {}
}

0 comments on commit 301ec95

Please sign in to comment.