From 4daefc25889316c976ba555fdbd8ff9f04ca90f1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 13 Jun 2013 10:24:10 -0700 Subject: [PATCH] fmt --- builder/virtualbox/builder.go | 42 +++++++++++++++++------------------ command/validate/commang.go | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/builder/virtualbox/builder.go b/builder/virtualbox/builder.go index 147952366..b2275ce1f 100644 --- a/builder/virtualbox/builder.go +++ b/builder/virtualbox/builder.go @@ -23,28 +23,28 @@ type Builder struct { } type config struct { - BootCommand []string `mapstructure:"boot_command"` - BootWait time.Duration `` - GuestOSType string `mapstructure:"guest_os_type"` - HTTPDir string `mapstructure:"http_directory"` - HTTPPortMin uint `mapstructure:"http_port_min"` - HTTPPortMax uint `mapstructure:"http_port_max"` - ISOMD5 string `mapstructure:"iso_md5"` - ISOUrl string `mapstructure:"iso_url"` - OutputDir string `mapstructure:"output_directory"` - ShutdownCommand string `mapstructure:"shutdown_command"` - ShutdownTimeout time.Duration `` - SSHHostPortMin uint `mapstructure:"ssh_host_port_min"` - SSHHostPortMax uint `mapstructure:"ssh_host_port_max"` - SSHPassword string `mapstructure:"ssh_password"` - SSHPort uint `mapstructure:"ssh_port"` - SSHUser string `mapstructure:"ssh_username"` - SSHWaitTimeout time.Duration `` - VMName string `mapstructure:"vm_name"` - - RawBootWait string `mapstructure:"boot_wait"` + BootCommand []string `mapstructure:"boot_command"` + BootWait time.Duration `` + GuestOSType string `mapstructure:"guest_os_type"` + HTTPDir string `mapstructure:"http_directory"` + HTTPPortMin uint `mapstructure:"http_port_min"` + HTTPPortMax uint `mapstructure:"http_port_max"` + ISOMD5 string `mapstructure:"iso_md5"` + ISOUrl string `mapstructure:"iso_url"` + OutputDir string `mapstructure:"output_directory"` + ShutdownCommand string `mapstructure:"shutdown_command"` + ShutdownTimeout time.Duration `` + SSHHostPortMin uint `mapstructure:"ssh_host_port_min"` + SSHHostPortMax uint `mapstructure:"ssh_host_port_max"` + SSHPassword string `mapstructure:"ssh_password"` + SSHPort uint `mapstructure:"ssh_port"` + SSHUser string `mapstructure:"ssh_username"` + SSHWaitTimeout time.Duration `` + VMName string `mapstructure:"vm_name"` + + RawBootWait string `mapstructure:"boot_wait"` RawShutdownTimeout string `mapstructure:"shutdown_timeout"` - RawSSHWaitTimeout string `mapstructure:"ssh_wait_timeout"` + RawSSHWaitTimeout string `mapstructure:"ssh_wait_timeout"` } func (b *Builder) Prepare(raw interface{}) error { diff --git a/command/validate/commang.go b/command/validate/commang.go index 3ac187bfc..8c65fd62b 100644 --- a/command/validate/commang.go +++ b/command/validate/commang.go @@ -87,7 +87,7 @@ func (c Command) Run(env packer.Environment, args []string) int { for i, err := range errs { env.Ui().Error(err.Error()) - if (i+1) < len(errs) { + if (i + 1) < len(errs) { env.Ui().Error("") } }