mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-26 17:53:59 -04:00
builder/virtualbox: close the input source ISO
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user