Skip to content

Commit

Permalink
missing params
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Feb 21, 2022
1 parent 9b88ebe commit 46671c8
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@ async function upgradePackagePolicy(
}

try {
await packagePolicyService.upgrade(soClient, esClient, [packagePolicy.id]);
await packagePolicyService.upgrade(
soClient,
esClient,
[packagePolicy.id],
undefined,
packagePolicy,
installedPackage.version
);
results.push({ packagePolicyId: packagePolicy.id, diff: dryRunResults.diff, errors: [] });
} catch (error) {
results.push({ packagePolicyId: packagePolicy.id, diff: dryRunResults.diff, errors: [error] });
Expand Down

0 comments on commit 46671c8

Please sign in to comment.