Skip to content

Commit

Permalink
Merge branch 'private-run-once' of https://github.com/shahzad31/kibana
Browse files Browse the repository at this point in the history
…into private-run-once
  • Loading branch information
shahzad31 committed Jul 28, 2023
2 parents bc6ab28 + cc8f59c commit 1a3c00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/package_policy.ts
Expand Up @@ -413,7 +413,7 @@ class PackagePolicyClientImpl implements PackagePolicyClient {
const newSos = createdObjects.filter((so) => !so.error && so.attributes);

packagePoliciesWithIds.forEach((packagePolicy) => {
const hasCreatedSO = createdObjects.find((so) => so.id === packagePolicy.id);
const hasCreatedSO = newSos.find((so) => so.id === packagePolicy.id);
const hasFailed = failedPolicies.some(
({ packagePolicy: failedPackagePolicy }) => failedPackagePolicy.id === packagePolicy.id
);
Expand Down

0 comments on commit 1a3c00a

Please sign in to comment.