Commit 882e37a0 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Merge pull request #1349 from mbrukman/gofmt

Cleaned up Go formatting with gofmt.
parents 79d55c20 c75a671c
...@@ -3,12 +3,12 @@ package vsphere ...@@ -3,12 +3,12 @@ package vsphere
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"log"
"github.com/mitchellh/packer/common" "github.com/mitchellh/packer/common"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
"log"
"net/url"
"os/exec" "os/exec"
"strings" "strings"
"net/url"
) )
var builtins = map[string]string{ var builtins = map[string]string{
......
...@@ -29,7 +29,7 @@ type Config struct { ...@@ -29,7 +29,7 @@ type Config struct {
// The playbook dir to upload. // The playbook dir to upload.
PlaybookDir string `mapstructure:"playbook_dir"` PlaybookDir string `mapstructure:"playbook_dir"`
// The main playbook file to execute. // The main playbook file to execute.
PlaybookFile string `mapstructure:"playbook_file"` PlaybookFile string `mapstructure:"playbook_file"`
...@@ -133,7 +133,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error { ...@@ -133,7 +133,7 @@ func (p *Provisioner) Prepare(raws ...interface{}) error {
errs = packer.MultiErrorAppend(errs, err) errs = packer.MultiErrorAppend(errs, err)
} }
} }
// Check that the group_vars directory exists, if configured // Check that the group_vars directory exists, if configured
if len(p.config.GroupVars) > 0 { if len(p.config.GroupVars) > 0 {
if err := validateDirConfig(p.config.GroupVars, "group_vars"); err != nil { if err := validateDirConfig(p.config.GroupVars, "group_vars"); 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