builder/amazonebs: Slight slepe between connection attempts to SSH

This commit is contained in:
Mitchell Hashimoto 2013-06-11 14:13:33 -07:00
parent 352f875dbf
commit ccc95e7e5c

View file

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