mirror of
https://github.com/containers/podman.git
synced 2025-07-04 01:48:28 +08:00
Trivial simplification
Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -169,10 +169,9 @@ func (ir *Runtime) New(ctx context.Context, name, signaturePolicyPath, authfile
|
|||||||
}
|
}
|
||||||
|
|
||||||
newImage := Image{
|
newImage := Image{
|
||||||
InputName: name,
|
InputName: imageName[0],
|
||||||
imageruntime: ir,
|
imageruntime: ir,
|
||||||
}
|
}
|
||||||
newImage.InputName = imageName[0]
|
|
||||||
img, err := newImage.getLocalImage()
|
img, err := newImage.getLocalImage()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrapf(err, "error retrieving local image after pulling %s", name)
|
return nil, errors.Wrapf(err, "error retrieving local image after pulling %s", name)
|
||||||
|
Reference in New Issue
Block a user