image: replace GetStoreImage with ResolveReference

GetStoreImage is deprecated after containers/image#2056

Signed-off-by: Aditya R <arajan@redhat.com>
This commit is contained in:
Aditya R
2023-11-02 11:21:59 +05:30
parent 03419d6daa
commit aefa9abf4b

View File

@ -80,7 +80,7 @@ func (r *storageService) CreateContainerStorage(ctx context.Context, systemConte
if err != nil {
return ContainerInfo{}, err
}
img, err := istorage.Transport.GetStoreImage(r.store, ref)
_, img, err := istorage.ResolveReference(ref)
if err != nil {
return ContainerInfo{}, err
}