Commit 2d25f56
committed
exoscale: use the new
Instead of using a custom loop, use the newly introduced
`utils.WaitForSpecificOrError` function. Beware that on success, we use
the successful response to get the VM object (outside the loop).
Signed-off-by: Vincent Bernat <Vincent.Bernat@exoscale.ch>utils.WaitForSpecificOrError function to wait for job to finish1 parent 2a60a4e commit 2d25f56
1 file changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
421 | 422 | | |
422 | 423 | | |
423 | 424 | | |
424 | | - | |
425 | | - | |
426 | 425 | | |
427 | 426 | | |
428 | | - | |
429 | | - | |
| 427 | + | |
430 | 428 | | |
431 | 429 | | |
432 | | - | |
| 430 | + | |
433 | 431 | | |
434 | 432 | | |
435 | 433 | | |
436 | 434 | | |
437 | | - | |
| 435 | + | |
438 | 436 | | |
439 | | - | |
| 437 | + | |
440 | 438 | | |
441 | 439 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
446 | 443 | | |
447 | 444 | | |
448 | 445 | | |
| |||
0 commit comments