builder/virtualbox: close the input source ISO
This commit is contained in:
parent
d1b006cd55
commit
0eea40bad9
|
@ -109,6 +109,7 @@ DownloadWaitLoop:
|
|||
state["error"] = fmt.Errorf("Error copying ISO: %s", err)
|
||||
return multistep.ActionHalt
|
||||
}
|
||||
defer sourceF.Close()
|
||||
|
||||
if _, err := io.Copy(f, sourceF); err != nil {
|
||||
state["error"] = fmt.Errorf("Error copying ISO: %s", err)
|
||||
|
|
Loading…
Reference in New Issue