From 58eeea6b9ef4332fe39fb6ec070725159769913e Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Wed, 17 Jan 2024 16:09:36 +0100 Subject: [PATCH] brightbox: increase timeout in image creation Signed-off-by: Mathieu Tortuyaux --- platform/api/brightbox/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/api/brightbox/api.go b/platform/api/brightbox/api.go index 018135de7..d5892501a 100644 --- a/platform/api/brightbox/api.go +++ b/platform/api/brightbox/api.go @@ -220,7 +220,7 @@ func (a *API) UploadImage(ctx context.Context, name, URL string) (string, error) } // It usually takes around 20 seconds to extract the image. - if err := util.WaitUntilReady(2*time.Minute, 5*time.Second, func() (bool, error) { + if err := util.WaitUntilReady(5*time.Minute, 5*time.Second, func() (bool, error) { image, err := a.client.Image(ctx, img.ID) if err != nil { return false, fmt.Errorf("getting image status: %w", err)