summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-08-05 23:35:41 +0200
committerGitHub <noreply@github.com>2020-08-05 23:35:41 +0200
commit0d4a269c6dd06a48d42542d2c0980bf7a51c3493 (patch)
tree7c9bb1d0d44d08b6441c2a5cf7441a66957bc6c8 /pkg
parenta94863504166ad6fc9f31847e84b71cc32fcd09f (diff)
parent77f7bf9a9c0b97c83baa46ceb297d875acff49e9 (diff)
downloadpodman-0d4a269c6dd06a48d42542d2c0980bf7a51c3493.tar.gz
podman-0d4a269c6dd06a48d42542d2c0980bf7a51c3493.tar.bz2
podman-0d4a269c6dd06a48d42542d2c0980bf7a51c3493.zip
Merge pull request #7220 from baude/issue7124
podman-remote send name and tag
Diffstat (limited to 'pkg')
-rw-r--r--pkg/domain/infra/tunnel/images.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go
index 6845d01c0..c7bfdcd2b 100644
--- a/pkg/domain/infra/tunnel/images.go
+++ b/pkg/domain/infra/tunnel/images.go
@@ -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) {