mirror of https://github.com/docker/docs.git
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 <Vincent.Bernat@exoscale.ch>
This commit is contained in:
parent
4a54559233
commit
2a60a4ea32
|
@ -433,13 +433,11 @@ WaitLoop:
|
||||||
}
|
}
|
||||||
switch resp.Jobstatus {
|
switch resp.Jobstatus {
|
||||||
case 0: // Job is still in progress
|
case 0: // Job is still in progress
|
||||||
continue
|
|
||||||
case 1: // Job has successfully completed
|
case 1: // Job has successfully completed
|
||||||
break WaitLoop
|
break WaitLoop
|
||||||
case 2: // Job has failed to complete
|
case 2: // Job has failed to complete
|
||||||
return nil, fmt.Errorf("Operation failed to complete")
|
return nil, fmt.Errorf("Operation failed to complete")
|
||||||
default: // Some other code
|
default: // Some other code
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
time.Sleep(2 * time.Second)
|
time.Sleep(2 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue