go fmt
This commit is contained in:
parent
3a97bae000
commit
4453fda2e8
|
@ -1,8 +1,8 @@
|
|||
package amazonebs
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
gossh "code.google.com/p/go.crypto/ssh"
|
||||
"fmt"
|
||||
"github.com/mitchellh/goamz/ec2"
|
||||
"github.com/mitchellh/packer/communicator/ssh"
|
||||
"github.com/mitchellh/packer/packer"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"github.com/mitchellh/packer/packer"
|
||||
)
|
||||
|
||||
type stepCreateAMI struct {}
|
||||
type stepCreateAMI struct{}
|
||||
|
||||
func (s *stepCreateAMI) Run(state map[string]interface{}) StepAction {
|
||||
config := state["config"].(config)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"github.com/mitchellh/packer/packer"
|
||||
)
|
||||
|
||||
type stepStopInstance struct {}
|
||||
type stepStopInstance struct{}
|
||||
|
||||
func (s *stepStopInstance) Run(state map[string]interface{}) StepAction {
|
||||
ec2conn := state["ec2"].(*ec2.EC2)
|
||||
|
|
|
@ -21,14 +21,14 @@ type ReaderWriterUi struct {
|
|||
}
|
||||
|
||||
func (rw *ReaderWriterUi) Say(format string, a ...interface{}) {
|
||||
_, err := fmt.Fprintf(rw.Writer, format + "\n", a...)
|
||||
_, err := fmt.Fprintf(rw.Writer, format+"\n", a...)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func (rw *ReaderWriterUi) Error(format string, a ...interface{}) {
|
||||
_, err := fmt.Fprintf(rw.Writer, format + "\n", a...)
|
||||
_, err := fmt.Fprintf(rw.Writer, format+"\n", a...)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue