Fix wrong error returned for image index lookup
Seems like this was the wrong error given that we are looking up image label. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
bd81f8a39d
commit
89eebc4c0f
@ -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 {
|
return func(ctx context.Context, client *Client, c *containers.Container) error {
|
||||||
name, ok := index.Annotations[checkpointImageNameLabel]
|
name, ok := index.Annotations[checkpointImageNameLabel]
|
||||||
if !ok || name == "" {
|
if !ok || name == "" {
|
||||||
return ErrRuntimeNameNotFoundInIndex
|
return ErrImageNameNotFoundInIndex
|
||||||
}
|
}
|
||||||
snapshotter, ok := index.Annotations[checkpointSnapshotterNameLabel]
|
snapshotter, ok := index.Annotations[checkpointSnapshotterNameLabel]
|
||||||
if !ok || name == "" {
|
if !ok || name == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user