[8.9] [Fleet] Remove duplicate path being pushed to archive (#162724) (#162765)

Backport https://github.com/elastic/kibana/pull/162724
This commit is contained in:
Julia Bardi 2023-07-31 10:35:35 +02:00 committed by GitHub
parent 56e9d72931
commit 912c479e57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,10 +215,9 @@ export const getEsPackage = async (
setArchiveEntry(path, buffer);
paths.push(path);
}
paths.push(path);
if (path.endsWith(MANIFEST_NAME) && buffer) manifests[path] = buffer;
});
// // Add asset references to cache
// Add asset references to cache
setArchiveFilelist({ name: pkgName, version: pkgVersion }, paths);
const packageInfo = parseAndVerifyArchive(paths, manifests);