Commit ccc95e7e authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazonebs: Slight slepe between connection attempts to SSH

parent 352f875d
...@@ -66,6 +66,10 @@ func (s *stepConnectSSH) Run(state map[string]interface{}) multistep.StepAction ...@@ -66,6 +66,10 @@ func (s *stepConnectSSH) Run(state map[string]interface{}) multistep.StepAction
if err == nil { if err == nil {
break break
} }
// A brief sleep so we're not being overly zealous attempting
// to connect to the instance.
time.Sleep(500 * time.Millisecond)
} }
connected <- true connected <- true
......
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