Skip to content

Commit

Permalink
podman-remote send name and tag
Browse files Browse the repository at this point in the history
when loading an image with podman-remote load, we need to send a name and a tag to the endpoint

Fixes: #7124

Signed-off-by: Brent Baude <bbaude@redhat.com>
  • Loading branch information
baude committed Aug 5, 2020
1 parent d4cf3c5 commit 77f7bf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion pkg/domain/infra/tunnel/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ func (ir *ImageEngine) Load(ctx context.Context, opts entities.ImageLoadOptions)
return nil, err
}
defer f.Close()
return images.Load(ir.ClientCxt, f, &opts.Name)
ref := opts.Name
if len(opts.Tag) > 0 {
ref += ":" + opts.Tag
}
return images.Load(ir.ClientCxt, f, &ref)
}

func (ir *ImageEngine) Import(ctx context.Context, opts entities.ImageImportOptions) (*entities.ImageImportReport, error) {
Expand Down
2 changes: 0 additions & 2 deletions test/system/120-load.bats
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ verify_iid_and_name() {
}

@test "podman load - NAME and NAME:TAG arguments work" {
skip_if_remote "FIXME: pending #7124"

get_iid_and_name
run_podman save $iid -o $archive
run_podman rmi $iid
Expand Down

0 comments on commit 77f7bf9

Please sign in to comment.