From ccc95e7e5c5e2b056f6ffbdc584a4d7b6325fe24 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 11 Jun 2013 14:13:33 -0700 Subject: [PATCH] builder/amazonebs: Slight slepe between connection attempts to SSH --- builder/amazonebs/step_connect_ssh.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builder/amazonebs/step_connect_ssh.go b/builder/amazonebs/step_connect_ssh.go index 69bc45220..4c5e1238a 100644 --- a/builder/amazonebs/step_connect_ssh.go +++ b/builder/amazonebs/step_connect_ssh.go @@ -66,6 +66,10 @@ func (s *stepConnectSSH) Run(state map[string]interface{}) multistep.StepAction if err == nil { break } + + // A brief sleep so we're not being overly zealous attempting + // to connect to the instance. + time.Sleep(500 * time.Millisecond) } connected <- true