[Bugfix] fix snapshotter variable check in ContainerWithCheckpoint

Signed-off-by: lujinda <q8886888@qq.com>
Signed-off-by: jinda.ljd <jinda.ljd@alibaba-inc.com>
This commit is contained in:
归寂 committed 2026-05-27 11:00:03 +08:00
1 parent 34ef231fd3
commit 57fca66a60
1 file changed
+1 -1
+1 -1
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)