Commit 675f7a43 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/virtualbox: don't download guest additions if disable [GH-731]

parent da168870
......@@ -40,6 +40,7 @@ BUG FIXES:
* core: No colored output in machine-readable output. [GH-684]
* core: User variables can now be used for non-string fields. [GH-598]
* builder/virtualbox: don't download guest additions if disabled. [GH-731]
* post-processor/vsphere: Uploads VM properly. [GH-694]
* post-processor/vsphere: Process user variables.
* provisioner/ansible-local: playbook paths are properly validated
......
......@@ -35,6 +35,12 @@ func (s *stepDownloadGuestAdditions) Run(state multistep.StateBag) multistep.Ste
ui := state.Get("ui").(packer.Ui)
config := state.Get("config").(*config)
// If we've disabled guest additions, don't download
if config.GuestAdditionsMode == GuestAdditionsModeDisable {
log.Println("Not downloading guest additions since it is disabled.")
return multistep.ActionContinue
}
// Get VBox version
version, err := driver.Version()
if err != nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment