From 9a25e4082b6b5911dbba9d742a8549983c93a65d Mon Sep 17 00:00:00 2001 From: Juan Font Date: Sun, 14 Feb 2021 22:30:20 +0000 Subject: [PATCH] Added sleep so we dont crash the API --- driver/vcd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/driver/vcd.go b/driver/vcd.go index e552f95..50307c7 100644 --- a/driver/vcd.go +++ b/driver/vcd.go @@ -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"