From 2a60a4ea32dc93a89d1f60f77391339c36c6080b Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 28 May 2015 10:47:37 +0200 Subject: [PATCH] exoscale: ensure we sleep a bit while waiting for the VM to be ready Otherwise, the timeout is reached far too soon: instead of waiting for the VM for two minutes, we wait only for a couple of seconds. Signed-off-by: Vincent Bernat --- drivers/exoscale/exoscale.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/exoscale/exoscale.go b/drivers/exoscale/exoscale.go index 9415a7b82c..c190cb1f12 100644 --- a/drivers/exoscale/exoscale.go +++ b/drivers/exoscale/exoscale.go @@ -433,13 +433,11 @@ WaitLoop: } switch resp.Jobstatus { case 0: // Job is still in progress - continue case 1: // Job has successfully completed break WaitLoop case 2: // Job has failed to complete return nil, fmt.Errorf("Operation failed to complete") default: // Some other code - continue } time.Sleep(2 * time.Second) }