summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/images.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-04-21 15:15:56 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2020-04-22 14:13:07 -0400
commit6fdcc09a2027d9c929af0389fba131c72b103fcd (patch)
treecb99539bc278afafd75387b18d60ec8d8049c8c3 /pkg/domain/infra/abi/images.go
parent703fd505538fdae2165dad47c7a6886ac3ed891e (diff)
downloadpodman-6fdcc09a2027d9c929af0389fba131c72b103fcd.tar.gz
podman-6fdcc09a2027d9c929af0389fba131c72b103fcd.tar.bz2
podman-6fdcc09a2027d9c929af0389fba131c72b103fcd.zip
Fix integration tests for untag
Signed-off-by: Brent Baude <bbaude@redhat.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi/images.go')
-rw-r--r--pkg/domain/infra/abi/images.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index 32f7d75e5..d0b7b42b5 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -303,6 +303,10 @@ func (ir *ImageEngine) Untag(ctx context.Context, nameOrId string, tags []string
if err != nil {
return err
}
+ // If only one arg is provided, all names are to be untagged
+ if len(tags) == 0 {
+ tags = newImage.Names()
+ }
for _, tag := range tags {
if err := newImage.UntagImage(tag); err != nil {
return err