mirror of
https://github.com/containers/podman.git
synced 2025-06-21 01:19:15 +08:00
Don't re-assign imageID
By construction in callers, imageID is always a full ID, so this assignment is always a no-op. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -80,10 +80,6 @@ func (r *storageService) CreateContainerStorage(ctx context.Context, systemConte
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return ContainerInfo{}, err
|
return ContainerInfo{}, err
|
||||||
}
|
}
|
||||||
_, img, err := istorage.ResolveReference(ref)
|
|
||||||
if err != nil {
|
|
||||||
return ContainerInfo{}, err
|
|
||||||
}
|
|
||||||
// Pull out a copy of the image's configuration.
|
// Pull out a copy of the image's configuration.
|
||||||
image, err := ref.NewImage(ctx, systemContext)
|
image, err := ref.NewImage(ctx, systemContext)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -96,9 +92,6 @@ func (r *storageService) CreateContainerStorage(ctx context.Context, systemConte
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return ContainerInfo{}, err
|
return ContainerInfo{}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the image ID.
|
|
||||||
imageID = img.ID
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build metadata to store with the container.
|
// Build metadata to store with the container.
|
||||||
|
Reference in New Issue
Block a user