mirror of
https://github.com/containerd/containerd.git
synced 2026-08-08 17:11:15 +00:00
Merge pull request #13482 from lujinda/fix/restore-opts-snapshotter-check-20260527
[Bugfix] fix snapshotter variable check in ContainerWithCheckpoint
This commit is contained in:
@@ -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