diff --git a/x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.ts b/x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.ts index a6feb35b26f84..6934134c34aca 100644 --- a/x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.ts +++ b/x-pack/plugins/fleet/server/services/epm/packages/bundled_packages.ts @@ -28,7 +28,7 @@ export async function getBundledPackages(): Promise { const result = await Promise.all( zipFiles.map(async (zipFile) => { - const file = await fs.readFile(path.join(bundledPackageLocation)); + const file = await fs.readFile(path.join(bundledPackageLocation, zipFile)); const { pkgName, pkgVersion } = splitPkgKey(zipFile.replace(/\.zip$/, ''));