Merge pull request #1349 from mbrukman/gofmt

Cleaned up Go formatting with gofmt.
This commit is contained in:
Mitchell Hashimoto 2014-07-19 09:32:49 -07:00
commit 882e37a080
2 changed files with 4 additions and 4 deletions

View File

@ -3,12 +3,12 @@ package vsphere
import (
"bytes"
"fmt"
"log"
"github.com/mitchellh/packer/common"
"github.com/mitchellh/packer/packer"
"log"
"net/url"
"os/exec"
"strings"
"net/url"
)
var builtins = map[string]string{

View File

@ -29,7 +29,7 @@ type Config struct {
// The playbook dir to upload.
PlaybookDir string `mapstructure:"playbook_dir"`
// The main playbook file to execute.
PlaybookFile string `mapstructure:"playbook_file"`
@ -133,7 +133,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
errs = packer.MultiErrorAppend(errs, err)
}
}
// Check that the group_vars directory exists, if configured
if len(p.config.GroupVars) > 0 {
if err := validateDirConfig(p.config.GroupVars, "group_vars"); err != nil {