From 6fdcc09a2027d9c929af0389fba131c72b103fcd Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Tue, 21 Apr 2020 15:15:56 -0500 Subject: Fix integration tests for untag Signed-off-by: Brent Baude Signed-off-by: Daniel J Walsh --- pkg/domain/infra/abi/images.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/domain/infra/abi/images.go') 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 -- cgit v1.2.3-54-g00ecf