Skip to content

Commit 5fc351a

Browse files
Merge pull request #21668 from Luap99/machine-pull-interrupt
machine: ocipull do not error if downloaddir exists
2 parents bed619c + bcec7e6 commit 5fc351a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

pkg/machine/ocipull/pull.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ type PullOptions struct {
2828

2929
// Pull `imageInput` from a container registry to `sourcePath`.
3030
func Pull(ctx context.Context, imageInput types.ImageReference, localDestPath *define.VMFile, options *PullOptions) error {
31-
if _, err := os.Stat(localDestPath.GetPath()); err == nil {
32-
return fmt.Errorf("%q already exists", localDestPath.GetPath())
33-
}
34-
3531
destRef, err := layout.ParseReference(localDestPath.GetPath())
3632
if err != nil {
3733
return err

0 commit comments

Comments
 (0)