mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Fix condition for filtering to installed packages (#79205)
This commit is contained in:
parent
7211f78ce1
commit
5f187307c2
1 changed files with 2 additions and 2 deletions
|
@ -51,14 +51,14 @@ export async function getPackages(
|
|||
}
|
||||
|
||||
// Get package names for packages which cannot have more than one package policy on an agent policy
|
||||
// Assume packages only export one config template for now
|
||||
// Assume packages only export one policy template for now
|
||||
export async function getLimitedPackages(options: {
|
||||
savedObjectsClient: SavedObjectsClientContract;
|
||||
}): Promise<string[]> {
|
||||
const { savedObjectsClient } = options;
|
||||
const allPackages = await getPackages({ savedObjectsClient, experimental: true });
|
||||
const installedPackages = allPackages.filter(
|
||||
(pkg) => (pkg.status = InstallationStatus.installed)
|
||||
(pkg) => pkg.status === InstallationStatus.installed
|
||||
);
|
||||
const installedPackagesInfo = await Promise.all(
|
||||
installedPackages.map((pkgInstall) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue