Run go fmt on files
This commit is contained in:
parent
44f73fa75f
commit
335615408a
|
@ -2,9 +2,9 @@ package common
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"github.com/mitchellh/packer/common"
|
||||
"github.com/mitchellh/packer/template/interpolate"
|
||||
"os"
|
||||
)
|
||||
|
||||
type OutputConfig struct {
|
||||
|
|
|
@ -30,7 +30,7 @@ func (s *StepCreateTempDir) Run(state multistep.StateBag) multistep.StepAction {
|
|||
return multistep.ActionHalt
|
||||
}
|
||||
|
||||
s.dirPath = packerTempDir;
|
||||
s.dirPath = packerTempDir
|
||||
state.Put("packerTempDir", packerTempDir)
|
||||
|
||||
// ui.Say("packerTempDir = '" + packerTempDir + "'")
|
||||
|
|
|
@ -19,10 +19,10 @@ type StepSleep struct {
|
|||
func (s *StepSleep) Run(state multistep.StateBag) multistep.StepAction {
|
||||
ui := state.Get("ui").(packer.Ui)
|
||||
|
||||
if(len(s.ActionName)>0){
|
||||
if len(s.ActionName) > 0 {
|
||||
ui.Say(s.ActionName + "! Waiting for " + fmt.Sprintf("%v", uint(s.Minutes)) + " minutes to let the action to complete...")
|
||||
}
|
||||
time.Sleep(time.Minute*s.Minutes);
|
||||
time.Sleep(time.Minute * s.Minutes)
|
||||
|
||||
return multistep.ActionContinue
|
||||
}
|
||||
|
|
|
@ -9,14 +9,14 @@ type ScriptBuilder struct {
|
|||
}
|
||||
|
||||
func (b *ScriptBuilder) WriteLine(s string) (n int, err error) {
|
||||
n, err = b.buffer.WriteString(s);
|
||||
n, err = b.buffer.WriteString(s)
|
||||
b.buffer.WriteString("\n")
|
||||
|
||||
return n + 1, err
|
||||
}
|
||||
|
||||
func (b *ScriptBuilder) WriteString(s string) (n int, err error) {
|
||||
n, err = b.buffer.WriteString(s);
|
||||
n, err = b.buffer.WriteString(s)
|
||||
return n, err
|
||||
}
|
||||
|
||||
|
@ -27,4 +27,3 @@ func (b *ScriptBuilder) String() string {
|
|||
func (b *ScriptBuilder) Reset() {
|
||||
b.buffer.Reset()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue