hashicorp / terraform-provider-vault

Terraform Vault provider
https://www.terraform.io/docs/providers/vault/
Mozilla Public License 2.0
451 stars 535 forks source link

[Docs]: num_seconds_between_tests 7 seconds or 1 second? #2173

Closed goegol closed 3 months ago

goegol commented 4 months ago

Documentation Link

https://registry.terraform.io/providers/hashicorp/vault/latest/docs/data-sources/azure_access_credentials

Description

The text says 7 seconds (If validate_creds is used, by default, credentials will be validated by making a test call to Azure every 7 seconds) but the code description says 1 ( (Optional) If 'validate_creds' is true, the number of seconds to wait between each test of generated credentials. Defaults to 1.)

image

image

References

No response

Would you like to implement a fix?

Yes

F21 commented 4 months ago

Looking at the source, I think it's every 1 second: https://github.com/hashicorp/terraform-provider-vault/blob/main/vault/data_source_azure_access_credentials.go#L72