diff --git a/CHANGELOG.md b/CHANGELOG.md index dcb6279..1a4ecc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Add `catalystcenter_ntp_settings` resource and data source - Add `catalystcenter_telemetry_settings` resource and data source - Add `catalystcenter_timezone_settings` resource and data source +- Changed default timeout of asynchronous tasks to 180 seconds ## 0.1.19 diff --git a/docs/guides/changelog.md b/docs/guides/changelog.md index 4cb1b92..84b0b97 100644 --- a/docs/guides/changelog.md +++ b/docs/guides/changelog.md @@ -16,6 +16,7 @@ description: |- - Add `catalystcenter_ntp_settings` resource and data source - Add `catalystcenter_telemetry_settings` resource and data source - Add `catalystcenter_timezone_settings` resource and data source +- Changed default timeout of asynchronous tasks to 180 seconds ## 0.1.19 diff --git a/docs/index.md b/docs/index.md index c56bd33..cd49eb4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -39,7 +39,7 @@ provider "catalystcenter" { ### Optional - `insecure` (Boolean) Allow insecure HTTPS client. This can also be set as the CC_INSECURE environment variable. Defaults to `true`. -- `max_timeout` (Number) Timeout in seconds for asynchronous tasks. This can also be set as the CC_MAX_TIMEOUT environment variable. Defaults to `60`. +- `max_timeout` (Number) Timeout in seconds for asynchronous tasks. This can also be set as the CC_MAX_TIMEOUT environment variable. Defaults to `180`. - `password` (String, Sensitive) Password for the Catalyst Center instance. This can also be set as the CC_PASSWORD environment variable. - `retries` (Number) Number of retries for REST API calls. This can also be set as the CC_RETRIES environment variable. Defaults to `3`. - `url` (String) URL of the Catalyst Center instance. This can also be set as the CC_URL environment variable. diff --git a/gen/templates/provider.go b/gen/templates/provider.go index 7fce075..7909096 100644 --- a/gen/templates/provider.go +++ b/gen/templates/provider.go @@ -92,7 +92,7 @@ func (p *CcProvider) Schema(ctx context.Context, req provider.SchemaRequest, res }, }, "max_timeout": schema.Int64Attribute{ - MarkdownDescription: "Timeout in seconds for asynchronous tasks. This can also be set as the CC_MAX_TIMEOUT environment variable. Defaults to `60`.", + MarkdownDescription: "Timeout in seconds for asynchronous tasks. This can also be set as the CC_MAX_TIMEOUT environment variable. Defaults to `180`.", Optional: true, Validators: []validator.Int64{ int64validator.Between(0, 3600), @@ -244,7 +244,7 @@ func (p *CcProvider) Configure(ctx context.Context, req provider.ConfigureReques if config.MaxTimeout.IsNull() { maxTimeoutStr := os.Getenv("CC_MAX_TIMEOUT") if maxTimeoutStr == "" { - maxTimeout = 60 + maxTimeout = 180 } else { maxTimeout, _ = strconv.ParseInt(maxTimeoutStr, 0, 64) } diff --git a/internal/provider/provider.go b/internal/provider/provider.go index e3dcde8..f9c05d2 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -90,7 +90,7 @@ func (p *CcProvider) Schema(ctx context.Context, req provider.SchemaRequest, res }, }, "max_timeout": schema.Int64Attribute{ - MarkdownDescription: "Timeout in seconds for asynchronous tasks. This can also be set as the CC_MAX_TIMEOUT environment variable. Defaults to `60`.", + MarkdownDescription: "Timeout in seconds for asynchronous tasks. This can also be set as the CC_MAX_TIMEOUT environment variable. Defaults to `180`.", Optional: true, Validators: []validator.Int64{ int64validator.Between(0, 3600), @@ -242,7 +242,7 @@ func (p *CcProvider) Configure(ctx context.Context, req provider.ConfigureReques if config.MaxTimeout.IsNull() { maxTimeoutStr := os.Getenv("CC_MAX_TIMEOUT") if maxTimeoutStr == "" { - maxTimeout = 60 + maxTimeout = 180 } else { maxTimeout, _ = strconv.ParseInt(maxTimeoutStr, 0, 64) } diff --git a/templates/guides/changelog.md.tmpl b/templates/guides/changelog.md.tmpl index 4cb1b92..84b0b97 100644 --- a/templates/guides/changelog.md.tmpl +++ b/templates/guides/changelog.md.tmpl @@ -16,6 +16,7 @@ description: |- - Add `catalystcenter_ntp_settings` resource and data source - Add `catalystcenter_telemetry_settings` resource and data source - Add `catalystcenter_timezone_settings` resource and data source +- Changed default timeout of asynchronous tasks to 180 seconds ## 0.1.19