From b75a1ba44d99eb9f0b29e5a670a514e9ddc1368a Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Thu, 6 Apr 2017 13:30:00 -0400 Subject: [PATCH] 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 --- pkg/storage/image.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkg/storage/image.go b/pkg/storage/image.go index a67e8b11..438923ee 100644 --- a/pkg/storage/image.go +++ b/pkg/storage/image.go @@ -160,18 +160,6 @@ func (svc *imageService) PullImage(systemContext *types.SystemContext, imageName if err != nil { 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 }