From 426d223c0dfb71ab3dcda278ba6251c5d6c9cf31 Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Thu, 8 Aug 2024 15:45:32 +0200 Subject: [PATCH] Revert "TMP: azure: timeout after 15s" This reverts commit 2647b48a652e4a006c4744fad739b92c63659a47. --- platform/api/azure/instance.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/api/azure/instance.go b/platform/api/azure/instance.go index ec9b4e285..1eca18daa 100644 --- a/platform/api/azure/instance.go +++ b/platform/api/azure/instance.go @@ -243,9 +243,7 @@ func (a *API) CreateInstance(name, sshkey, resourceGroup, storageAccount string, clean() return nil, err } - ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute) - defer cancel() - _, err = poller.PollUntilDone(ctx, nil) + _, err = poller.PollUntilDone(context.TODO(), nil) if err != nil { return &Machine{ID: name, State: PROVISIONING}, fmt.Errorf("PollUntilDone: %w", err) }