diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-07-07 15:55:36 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-07-07 15:55:36 +0200 |
commit | 38bef70b30cc8c55e05353aeef4aea2acf4f4eb0 (patch) | |
tree | 491b374d826265b9c9d6079f79d1a4df049452e6 | |
parent | c583d4dd8c34bab1d5c72123aa3914b1269cb57b (diff) | |
download | podman-38bef70b30cc8c55e05353aeef4aea2acf4f4eb0.tar.gz podman-38bef70b30cc8c55e05353aeef4aea2acf4f4eb0.tar.bz2 podman-38bef70b30cc8c55e05353aeef4aea2acf4f4eb0.zip |
manifest push --rm: use libimage for removal
Use libimage for removing the manifest instead of going directly
through the store.
[NO TESTS NEEDED]
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
-rw-r--r-- | pkg/domain/infra/abi/manifest.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/domain/infra/abi/manifest.go b/pkg/domain/infra/abi/manifest.go index 7e5477f4f..e905036be 100644 --- a/pkg/domain/infra/abi/manifest.go +++ b/pkg/domain/infra/abi/manifest.go @@ -355,8 +355,8 @@ func (ir *ImageEngine) ManifestPush(ctx context.Context, name, destination strin } if opts.Rm { - if _, err := ir.Libpod.GetStore().DeleteImage(manifestList.ID(), true); err != nil { - return "", errors.Wrap(err, "error removing manifest after push") + if _, rmErrors := ir.Libpod.LibimageRuntime().RemoveImages(ctx, []string{manifestList.ID()}, nil); len(rmErrors) > 0 { + return "", errors.Wrap(rmErrors[0], "error removing manifest after push") } } |