Remove some redundant target image namesetting
Remove some logic that messed with the names we assigned to just-pulled images in the storage layer, since the image and storage libraries now take care of that for us. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
a0b1da15a3
commit
b75a1ba44d
1 changed files with 0 additions and 12 deletions
|
@ -160,18 +160,6 @@ func (svc *imageService) PullImage(systemContext *types.SystemContext, imageName
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// Go find the image, and attach the requested name to it, so that we
|
|
||||||
// can more easily find it later, even if the destination reference
|
|
||||||
// looks different.
|
|
||||||
destImage, err := istorage.Transport.GetStoreImage(svc.store, destRef)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
names := append(destImage.Names, imageName, dest)
|
|
||||||
err = svc.store.SetNames(destImage.ID, names)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return destRef, nil
|
return destRef, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue