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

fmt

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