This commit is contained in:
Mitchell Hashimoto 2013-05-21 00:56:27 -07:00
parent 3a97bae000
commit 4453fda2e8
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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