Skip to content

Commit

Permalink
Added sleep so we dont crash the API
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont authored Feb 14, 2021
1 parent d54ab03 commit 9a25e40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions driver/vcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func (d *Driver) Create() error {
if status == "POWERED_OFF" {
break
}
time.Sleep(5 * time.Second)
log.Infof("Waiting for VM deploy. Status: %s", status)
}
cWait <- "ok"
Expand Down

0 comments on commit 9a25e40

Please sign in to comment.