Skip to content

Commit

Permalink
Ignore missing asset errors on remove. (#89115)
Browse files Browse the repository at this point in the history
  • Loading branch information
skh authored Jan 25, 2021
1 parent e8f338e commit 77851e8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x-pack/plugins/fleet/server/services/epm/packages/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ async function deleteAssets(
try {
await Promise.all(deletePromises);
} catch (err) {
logger.error(err);
// in the rollback case, partial installs are likely, so missing assets are not an error
if (!savedObjectsClient.errors.isNotFoundError(err)) {
logger.error(err);
}
}
}

Expand Down

0 comments on commit 77851e8

Please sign in to comment.