mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-11 01:30:06 -04:00
builder/amazonebs: Slight slepe between connection attempts to SSH
This commit is contained in:
parent
352f875dbf
commit
ccc95e7e5c
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue