Skip to content

Commit fcc1533

Browse files
committed
Fix image delete in convert
Signed-off-by: apostasie <[email protected]>
1 parent e38cd0a commit fcc1533

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cmd/image/convert.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ func Convert(ctx context.Context, client *containerd.Client, srcRawRef, targetRa
208208
return err
209209
}
210210
is := client.ImageService()
211-
_ = is.Delete(ctx, newI.Name, images.SynchronousDelete())
212-
finimg, err := is.Create(ctx, *newI)
211+
finimg, err := is.Update(ctx, *newI)
213212
if err != nil {
214213
return err
215214
}

0 commit comments

Comments
 (0)