A separate driver file is not really needed anymore

This commit is contained in:
Alexander Laamanen 2017-02-23 22:15:09 +02:00 committed by Megan Marsh
parent 2ed6c3ef5e
commit c294e65c36
3 changed files with 1 additions and 15 deletions

View File

@ -229,7 +229,7 @@ func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
}
func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packer.Artifact, error) {
driver, err := NewDriver(&b.config)
driver, err := vmwcommon.NewDriver(&b.config.DriverConfig, &b.config.SSHConfig, &b.config.CommConfig, b.config.VMName)
if err != nil {
return nil, fmt.Errorf("Failed creating VMware driver: %s", err)
}

View File

@ -1,13 +0,0 @@
package iso
import (
"fmt"
vmwcommon "github.com/hashicorp/packer/builder/vmware/common"
)
// NewDriver returns a new driver implementation for this operating
// system, or an error if the driver couldn't be initialized.
func NewDriver(config *Config) (vmwcommon.Driver, error) {
return vmwcommon.NewDriver(&config.DriverConfig, &config.SSHConfig, &config.CommConfig, config.VMName)
}

View File

@ -303,7 +303,6 @@ contention. You can tune this delay on a per-builder basis by specifying
In addition to the special keys, each command to type is treated as a
[configuration template](/docs/templates/configuration-templates.html). The
available variables are:
>>>>>>> Update the vmware-vmx documentation.:website/source/docs/builders/vmware-vmx.html.md
<%= partial "partials/builders/boot-command" %>