mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 17:01:04 -06:00
c1303f8482
Change ValidateProviderConfig to PrepareProviderConfig. Providers have a concept of "required fields with defaults" that that was handled previously by helper/schema doing input and validation. Because Input and Validation is mostly now handled by core, the provider had no way of setting default values for missing required attributes. To achieve the same behavior with new providers, there will be a PrepareProviderConfig, which allow for manual validation, as well as alteration of the config. The provider is free to set whatever attributes necessary to create a valid config and return it to the caller. If a new config is returned, it will be used instead of the original in the subsequent Configure call, however core may still add missing required values during an optional Input phase. |
||
---|---|---|
.. | ||
addressed_types_test.go | ||
addressed_types.go | ||
doc.go | ||
provider.go | ||
resolver.go |