From a05a843669da35efe7377a6ca9927fae106b5c46 Mon Sep 17 00:00:00 2001 From: Guru Sai Rama Subbarao Voleti Date: Thu, 17 Oct 2024 05:30:20 +0000 Subject: [PATCH] remove retry --- .../services/storage/resource_storage_bucket.go.tmpl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.tmpl b/mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.tmpl index c3e9ee9cc63d..16d54bfcb343 100644 --- a/mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.tmpl +++ b/mmv1/third_party/terraform/services/storage/resource_storage_bucket.go.tmpl @@ -961,18 +961,9 @@ func resourceStorageBucketRead(d *schema.ResourceData, meta interface{}) error { // Get the bucket and acl bucket := d.Get("name").(string) - var res *storage.Bucket // There seems to be some eventual consistency errors in some cases, so we want to check a few times // to make sure it exists before moving on - err = transport_tpg.Retry(transport_tpg.RetryOptions{ - RetryFunc: func() (operr error) { - var retryErr error - res, retryErr = config.NewStorageClient(userAgent).Buckets.Get(bucket).Do() - return retryErr - }, - Timeout: d.Timeout(schema.TimeoutRead), - ErrorRetryPredicates: []transport_tpg.RetryErrorPredicateFunc{transport_tpg.IsNotFoundRetryableError("bucket read")}, - }) + res, err := config.NewStorageClient(userAgent).Buckets.Get(bucket).Do() if err != nil { return transport_tpg.HandleNotFoundError(err, d, fmt.Sprintf("Storage Bucket %q", d.Get("name").(string)))