mirror of
https://github.com/containerd/containerd.git
synced 2026-11-06 05:17:02 +00:00
[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:
1 parent
34ef231fd3
commit
57fca66a60
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user