Skip to content

Commit

Permalink
remove unsued parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed May 21, 2024
1 parent 69009c9 commit 50c5699
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/fleet/server/services/preconfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ export async function ensurePreconfiguredPackagesAndPolicies(
logger.debug(`Adding preconfigured package policies ${packagePoliciesToAdd}`);
const s = apm.startSpan('Add preconfigured package policies', 'preconfiguration');
await addPreconfiguredPolicyPackages(
defaultSoClient,
esClient,
policy!,
packagePoliciesToAdd!,
Expand Down Expand Up @@ -363,7 +362,6 @@ export function comparePreconfiguredPolicyToCurrent(
}

async function addPreconfiguredPolicyPackages(
defaultSoClient: SavedObjectsClientContract,
esClient: ElasticsearchClient,
agentPolicy: AgentPolicy,
installedPackagePolicies: Array<{
Expand Down Expand Up @@ -391,7 +389,7 @@ async function addPreconfiguredPolicyPackages(
packageInfo = packageInfoMap.get(installedPackage.name)!;
} else {
packageInfo = await getPackageInfo({
savedObjectsClient: defaultSoClient,
savedObjectsClient: namespacedSoClient,
pkgName: installedPackage.name,
pkgVersion: installedPackage.version,
});
Expand Down

0 comments on commit 50c5699

Please sign in to comment.