From b4dbed0d2bb5d49fe453e743e3518c123f1fbc67 Mon Sep 17 00:00:00 2001 From: Eran Kampf <205185+ekampf@users.noreply.github.com> Date: Tue, 23 Aug 2022 09:29:41 -0700 Subject: [PATCH] Increase DefaultHTTPMaxRetry to 10 (#183) * Increase DefaultHTTPMaxRetry to 10 * Update docs --- docs/index.md | 2 +- twingate/provider.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 199bb72f..ca259892 100644 --- a/docs/index.md +++ b/docs/index.md @@ -36,7 +36,7 @@ provider "twingate" { - `api_token` (String, Sensitive) The access key for API operations. You can retrieve this from the Twingate Admin Console ([documentation](https://docs.twingate.com/docs/api-overview)). Alternatively, this can be specified using the TWINGATE_API_TOKEN environment variable. -- `http_max_retry` (Number) Specifies a retry limit for the http requests made. This setting is 5. +- `http_max_retry` (Number) Specifies a retry limit for the http requests made. This default value is 10. Alternatively, this can be specified using the TWINGATE_HTTP_MAX_RETRY environment variable - `http_timeout` (Number) Specifies a time limit in seconds for the http requests made. The default value is 10 seconds. Alternatively, this can be specified using the TWINGATE_HTTP_TIMEOUT environment variable diff --git a/twingate/provider.go b/twingate/provider.go index 79233488..eb032658 100644 --- a/twingate/provider.go +++ b/twingate/provider.go @@ -10,7 +10,7 @@ import ( const ( DefaultHTTPTimeout = "10" - DefaultHTTPMaxRetry = "5" + DefaultHTTPMaxRetry = "10" ) func Provider(version string) *schema.Provider { @@ -80,7 +80,7 @@ func providerOptions() map[string]*schema.Schema { Type: schema.TypeInt, Optional: true, DefaultFunc: schema.EnvDefaultFunc("TWINGATE_HTTP_MAX_RETRY", DefaultHTTPMaxRetry), - Description: "Specifies a retry limit for the http requests made. This setting is 5.\n" + + Description: "Specifies a retry limit for the http requests made. This default value is 10.\n" + "Alternatively, this can be specified using the TWINGATE_HTTP_MAX_RETRY environment variable", }, }