X Tutup
Skip to content

Commit 1cd6a37

Browse files
committed
close handle on destination after copying boot2docker.iso into vm folder - will otherwise keep hyper-v from starting vm
Signed-off-by: Christian von Stebut <christian@von.stebut.org>
1 parent acf2d1d commit 1cd6a37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libmachine/mcnutils/utils.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ func CopyFile(src, dst string) error {
5555
return err
5656
}
5757

58+
defer out.Close()
59+
5860
if _, err = io.Copy(out, in); err != nil {
5961
return err
6062
}

0 commit comments

Comments
 (0)
X Tutup