Commit 812ba354 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

fmt

parent b2255751
...@@ -59,5 +59,5 @@ type ContainerConfig struct { ...@@ -59,5 +59,5 @@ type ContainerConfig struct {
// This is the template that is used for the RunCommand in the ContainerConfig. // This is the template that is used for the RunCommand in the ContainerConfig.
type startContainerTemplate struct { type startContainerTemplate struct {
Image string Image string
} }
...@@ -25,7 +25,7 @@ func (d *Fusion6Driver) Clone(dst, src string) error { ...@@ -25,7 +25,7 @@ func (d *Fusion6Driver) Clone(dst, src string) error {
if strings.Contains(err.Error(), "parameters was invalid") { if strings.Contains(err.Error(), "parameters was invalid") {
return fmt.Errorf( return fmt.Errorf(
"Clone is not supported with your version of Fusion. Packer " + "Clone is not supported with your version of Fusion. Packer " +
"only works with Fusion 6 Professional. Please verify your version.") "only works with Fusion 6 Professional. Please verify your version.")
} }
return err return err
......
...@@ -16,8 +16,8 @@ type RunConfig struct { ...@@ -16,8 +16,8 @@ type RunConfig struct {
HTTPPortMin uint `mapstructure:"http_port_min"` HTTPPortMin uint `mapstructure:"http_port_min"`
HTTPPortMax uint `mapstructure:"http_port_max"` HTTPPortMax uint `mapstructure:"http_port_max"`
VNCPortMin uint `mapstructure:"vnc_port_min"` VNCPortMin uint `mapstructure:"vnc_port_min"`
VNCPortMax uint `mapstructure:"vnc_port_max"` VNCPortMax uint `mapstructure:"vnc_port_max"`
BootWait time.Duration `` BootWait time.Duration ``
} }
......
...@@ -20,9 +20,9 @@ import ( ...@@ -20,9 +20,9 @@ import (
// //
// Produces: // Produces:
// vnc_port uint - The port that VNC is configured to listen on. // vnc_port uint - The port that VNC is configured to listen on.
type StepConfigureVNC struct{ type StepConfigureVNC struct {
VNCPortMin uint VNCPortMin uint
VNCPortMax uint VNCPortMax uint
} }
type VNCAddressFinder interface { type VNCAddressFinder interface {
......
...@@ -56,14 +56,14 @@ func TestConfigTemplateProcess_isotime_withFormat(t *testing.T) { ...@@ -56,14 +56,14 @@ func TestConfigTemplateProcess_isotime_withFormat(t *testing.T) {
if err == nil { if err == nil {
t.Fatalf("err: cannot have more than 1 input") t.Fatalf("err: cannot have more than 1 input")
} }
result, err := tpl.Process(`{{isotime "20060102"}}`, nil) result, err := tpl.Process(`{{isotime "20060102"}}`, nil)
if err != nil { if err != nil {
t.Fatalf("err: %s", err) t.Fatalf("err: %s", err)
} }
ti := time.Now().UTC() ti := time.Now().UTC()
val := fmt.Sprintf("%04d%02d%02d", ti.Year(), ti.Month(), ti.Day()) val := fmt.Sprintf("%04d%02d%02d", ti.Year(), ti.Month(), ti.Day())
if result != val { if result != val {
t.Fatalf("val: %s (formated: %s)", val, result) t.Fatalf("val: %s (formated: %s)", val, result)
......
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