Merge pull request #13482 from lujinda/fix/restore-opts-snapshotter-check-20260527

[Bugfix] fix snapshotter variable check in ContainerWithCheckpoint
This commit is contained in:
Maksym Pavlenko
2026-06-25 19:33:25 +00:00
committed by GitHub

View File

@@ -50,7 +50,7 @@ func WithRestoreImage(ctx context.Context, id string, client *Client, checkpoint
return ErrImageNameNotFoundInIndex
}
snapshotter, ok := index.Annotations[checkpointSnapshotterNameLabel]
if !ok || name == "" {
if !ok || snapshotter == "" {
return ErrSnapshotterNameNotFoundInIndex
}
i, err := client.GetImage(ctx, name)