Commit 417f7e7f authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

fmt

parent de9c4ace
...@@ -74,7 +74,7 @@ func (s *stepConnectSSH) Run(state map[string]interface{}) multistep.StepAction ...@@ -74,7 +74,7 @@ func (s *stepConnectSSH) Run(state map[string]interface{}) multistep.StepAction
log.Printf("Waiting up to %s for SSH connection", config.SSHTimeout) log.Printf("Waiting up to %s for SSH connection", config.SSHTimeout)
timeout := time.After(config.SSHTimeout) timeout := time.After(config.SSHTimeout)
ConnectWaitLoop: ConnectWaitLoop:
for { for {
select { select {
case <-connected: case <-connected:
......
...@@ -5,8 +5,8 @@ package shell ...@@ -5,8 +5,8 @@ package shell
import ( import (
"bufio" "bufio"
"bytes" "bytes"
"fmt"
"errors" "errors"
"fmt"
"github.com/mitchellh/iochan" "github.com/mitchellh/iochan"
"github.com/mitchellh/mapstructure" "github.com/mitchellh/mapstructure"
"github.com/mitchellh/packer/packer" "github.com/mitchellh/packer/packer"
...@@ -104,7 +104,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) { ...@@ -104,7 +104,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) {
// Write our contents to it // Write our contents to it
writer := bufio.NewWriter(tf) writer := bufio.NewWriter(tf)
for _, command := range p.config.Inline { for _, command := range p.config.Inline {
if _, err := writer.WriteString(command+"\n"); err != nil { if _, err := writer.WriteString(command + "\n"); err != nil {
ui.Error(fmt.Sprintf("Error preparing shell script: %s", err)) ui.Error(fmt.Sprintf("Error preparing shell script: %s", err))
return return
} }
......
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