Skip to content

Commit

Permalink
Update naming in duplicate integration policy error message (#119622) (
Browse files Browse the repository at this point in the history
…#122428)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
kpollich and kibanamachine authored Jan 6, 2022
1 parent 4fca5c9 commit 250dee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/fleet/server/services/package_policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class PackagePolicyService {

// Check that the name does not exist already
if (existingPoliciesWithName.items.length > 0) {
throw new IngestManagerError('There is already a package with the same name');
throw new IngestManagerError('There is already an integration policy with the same name');
}
let elasticsearch: PackagePolicy['elasticsearch'];
// Add ids to stream
Expand Down Expand Up @@ -375,7 +375,7 @@ class PackagePolicyService {
const filtered = (existingPoliciesWithName?.items || []).filter((p) => p.id !== id);

if (filtered.length > 0) {
throw new IngestManagerError('There is already a package with the same name');
throw new IngestManagerError('There is already an integration policy with the same name');
}

let inputs = restOfPackagePolicy.inputs.map((input) =>
Expand Down

0 comments on commit 250dee1

Please sign in to comment.