diff options
author | Brent Baude <bbaude@redhat.com> | 2020-04-13 10:53:24 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-04-13 13:08:04 -0500 |
commit | 90ead05903e9c42758c1052c2ee623dca8de5e98 (patch) | |
tree | 60fc9e4b574c4b2d927c62907e27e7902440a51f /pkg/domain/infra/abi | |
parent | 465b4bc563b274ec166868aae079a65ee0284b1d (diff) | |
download | podman-90ead05903e9c42758c1052c2ee623dca8de5e98.tar.gz podman-90ead05903e9c42758c1052c2ee623dca8de5e98.tar.bz2 podman-90ead05903e9c42758c1052c2ee623dca8de5e98.zip |
Fixes for load and other system tests
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r-- | pkg/domain/infra/abi/images.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go index 24ee596be..6fc5eb9e3 100644 --- a/pkg/domain/infra/abi/images.go +++ b/pkg/domain/infra/abi/images.go @@ -394,8 +394,10 @@ func (ir *ImageEngine) Load(ctx context.Context, opts entities.ImageLoadOptions) if err != nil { return nil, errors.Wrap(err, "image loaded but no additional tags were created") } - if err := newImage.TagImage(opts.Name); err != nil { - return nil, errors.Wrapf(err, "error adding %q to image %q", opts.Name, newImage.InputName) + if len(opts.Name) > 0 { + if err := newImage.TagImage(fmt.Sprintf("%s:%s", opts.Name, opts.Tag)); err != nil { + return nil, errors.Wrapf(err, "error adding %q to image %q", opts.Name, newImage.InputName) + } } return &entities.ImageLoadReport{Name: name}, nil } |