summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2020-02-07 01:52:04 +0100
committerMiloslav Trmač <mitr@redhat.com>2020-02-07 23:36:01 +0100
commita433b858d275557e1469fdcd917f1ef2a93011cd (patch)
tree64957cf581f8b1d17546b200d78a3880ce82339e
parentd9bfaf51977cdc7088fe168d871ac5ce787c9d6a (diff)
downloadpodman-a433b858d275557e1469fdcd917f1ef2a93011cd.tar.gz
podman-a433b858d275557e1469fdcd917f1ef2a93011cd.tar.bz2
podman-a433b858d275557e1469fdcd917f1ef2a93011cd.zip
Trivial simplification
Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
-rw-r--r--libpod/image/image.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 28148b7c3..432b8b848 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -169,10 +169,9 @@ func (ir *Runtime) New(ctx context.Context, name, signaturePolicyPath, authfile
}
newImage := Image{
- InputName: name,
+ InputName: imageName[0],
imageruntime: ir,
}
- newImage.InputName = imageName[0]
img, err := newImage.getLocalImage()
if err != nil {
return nil, errors.Wrapf(err, "error retrieving local image after pulling %s", name)