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

This commit is contained in:
Mitchell Hashimoto
2013-12-18 11:22:02 -08:00
parent 9261751969
commit aa9b493870
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -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 {