Merge pull request #6237 from cpuguy83/fix_wrong_restore_error

Fix wrong error returned for image index lookup
This commit is contained in:
Maksym Pavlenko 2021-11-12 11:46:42 -08:00 committed by GitHub
commit 5b09dc5eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ func WithRestoreImage(ctx context.Context, id string, client *Client, checkpoint
return func(ctx context.Context, client *Client, c *containers.Container) error {
name, ok := index.Annotations[checkpointImageNameLabel]
if !ok || name == "" {
return ErrRuntimeNameNotFoundInIndex
return ErrImageNameNotFoundInIndex
}
snapshotter, ok := index.Annotations[checkpointSnapshotterNameLabel]
if !ok || name == "" {