From 4de756741b548cb2f6829c5ea279d010970eaf1e Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 4 Nov 2024 16:23:38 +0100 Subject: [PATCH] Revert "Don't fall back if imagesIDsForManifest fails" This reverts commit 3339ddc405347f6ef661a9b56f7a40d840e6282f. Signed-off-by: Paul Holzinger --- libimage/pull.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libimage/pull.go b/libimage/pull.go index 095e6c289..67838e845 100644 --- a/libimage/pull.go +++ b/libimage/pull.go @@ -699,11 +699,10 @@ func (r *Runtime) copySingleImageFromRegistry(ctx context.Context, imageName str } logrus.Debugf("Pulled candidate %s successfully", candidateString) - ids, err := r.imagesIDsForManifest(manifestBytes, sys) - if err != nil { - return nil, err + if ids, err := r.imagesIDsForManifest(manifestBytes, sys); err == nil { + return ids, nil } - return ids, nil + return []string{candidate.Value.String()}, nil } if localImage != nil && pullPolicy == config.PullPolicyNewer {