Skip to content

Commit

Permalink
jupiterbrain: sleep in loop checking for IP of new VM
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahhodne committed May 6, 2015
1 parent 8a56a51 commit 4fe03c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/backend/jupiterbrain.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func (p *JupiterBrainProvider) Start(ctx context.Context, startAttributes StartA
return
}

for true {
for {
resp, err := p.httpDo(req)
if err != nil {
errChan <- err
Expand Down Expand Up @@ -220,6 +220,8 @@ func (p *JupiterBrainProvider) Start(ctx context.Context, startAttributes StartA
instanceReady <- payload
return
}

time.Sleep(time.Second)
}
}(payload.ID)

Expand Down

0 comments on commit 4fe03c5

Please sign in to comment.