This commit is contained in:
Mitchell Hashimoto 2014-09-08 10:28:21 -07:00
parent b2255751a1
commit 812ba35479
5 changed files with 11 additions and 11 deletions

View File

@ -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
}

View File

@ -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

View File

@ -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 ``
}

View File

@ -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 {

View File

@ -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)