Skip to content

Commit

Permalink
fixup delete bundle
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic BIDON <frederic@oneconcern.com>
  • Loading branch information
fredbi committed Jan 10, 2023
1 parent 4f5ac0f commit d6c288d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func DeleteBundle(repo string, stores context2.Stores, bundleID string, opts ...
}

// 3. remove bundle descriptor
if e := store.Delete(context.Background(), pth); e != nil {
if e := store.Delete(context.Background(), pth); e != nil && !options.ignoreBundleError {
return fmt.Errorf("cannot delete bundle descriptor for %s in repo %s: %v", bundleID, repo, e)
}
return nil
Expand Down

0 comments on commit d6c288d

Please sign in to comment.