From e34018fd827f31be79b67e46b746f07899c27950 Mon Sep 17 00:00:00 2001 From: Arthur Outhenin-Chalandre Date: Tue, 12 Jul 2022 11:23:17 +0200 Subject: [PATCH] wait: use the correct timeout Signed-off-by: Arthur Outhenin-Chalandre --- ceph/resource_wait_online.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph/resource_wait_online.go b/ceph/resource_wait_online.go index a76ab8b..0af19d0 100644 --- a/ceph/resource_wait_online.go +++ b/ceph/resource_wait_online.go @@ -42,7 +42,7 @@ func resourceWaitOnlineCreate(ctx context.Context, d *schema.ResourceData, meta config := meta.(*Config) log.Printf("[DEBUG] Ceph starting ceph_wait_online") - err := resource.RetryContext(ctx, d.Timeout(schema.TimeoutRead), func() *resource.RetryError { + err := resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError { _, err := config.GetCephConnection() if err == nil { log.Printf("[DEBUG] Ceph online on ceph_wait_online")