From c48548b3bb4f72867235bcd1742844adac06d613 Mon Sep 17 00:00:00 2001 From: Mark Peek Date: Sun, 18 Oct 2015 11:13:09 -0700 Subject: [PATCH] go fmt --- builder/qemu/step_type_boot_command.go | 4 ++-- post-processor/atlas/post-processor.go | 18 +++++++++--------- provisioner/salt-masterless/provisioner.go | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/builder/qemu/step_type_boot_command.go b/builder/qemu/step_type_boot_command.go index 0daa0813b..cd1cd05ec 100644 --- a/builder/qemu/step_type_boot_command.go +++ b/builder/qemu/step_type_boot_command.go @@ -177,9 +177,9 @@ func vncSendString(c *vnc.ClientConn, original string) { } c.KeyEvent(keyCode, true) - time.Sleep(time.Second/10) + time.Sleep(time.Second / 10) c.KeyEvent(keyCode, false) - time.Sleep(time.Second/10) + time.Sleep(time.Second / 10) if keyShift { c.KeyEvent(KeyLeftShift, false) diff --git a/post-processor/atlas/post-processor.go b/post-processor/atlas/post-processor.go index 7b8a4d98b..be445b238 100644 --- a/post-processor/atlas/post-processor.go +++ b/post-processor/atlas/post-processor.go @@ -46,8 +46,8 @@ type Config struct { ctx interpolate.Context user, name string - buildId int - compileId int + buildId int + compileId int } type PostProcessor struct { @@ -159,13 +159,13 @@ func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (pac } opts := &atlas.UploadArtifactOpts{ - User: p.config.user, - Name: p.config.name, - Type: p.config.Type, - ID: artifact.Id(), - Metadata: p.metadata(artifact), - BuildID: p.config.buildId, - CompileID: p.config.compileId, + User: p.config.user, + Name: p.config.name, + Type: p.config.Type, + ID: artifact.Id(), + Metadata: p.metadata(artifact), + BuildID: p.config.buildId, + CompileID: p.config.compileId, } if fs := artifact.Files(); len(fs) > 0 { diff --git a/provisioner/salt-masterless/provisioner.go b/provisioner/salt-masterless/provisioner.go index 1ec740018..80c836241 100644 --- a/provisioner/salt-masterless/provisioner.go +++ b/provisioner/salt-masterless/provisioner.go @@ -194,7 +194,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error { } ui.Message("Running highstate") - cmd := &packer.RemoteCmd{Command: fmt.Sprintf(p.sudo("salt-call --local state.highstate --file-root=%s --pillar-root=%s -l info --retcode-passthrough"),p.config.RemoteStateTree, p.config.RemotePillarRoots)} + cmd := &packer.RemoteCmd{Command: fmt.Sprintf(p.sudo("salt-call --local state.highstate --file-root=%s --pillar-root=%s -l info --retcode-passthrough"), p.config.RemoteStateTree, p.config.RemotePillarRoots)} if err = cmd.StartWithUi(comm, ui); err != nil || cmd.ExitStatus != 0 { if err == nil { err = fmt.Errorf("Bad exit status: %d", cmd.ExitStatus)