mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #19111 from hashicorp/jbardin/provider-config
PrepareProviderConfig for terraform provider
This commit is contained in:
commit
6317d529a9
@ -31,10 +31,11 @@ func (p *Provider) GetSchema() providers.GetSchemaResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ValidateProviderConfig is used to validate the configuration values.
|
// ValidateProviderConfig is used to validate the configuration values.
|
||||||
func (p *Provider) ValidateProviderConfig(providers.ValidateProviderConfigRequest) providers.ValidateProviderConfigResponse {
|
func (p *Provider) PrepareProviderConfig(req providers.PrepareProviderConfigRequest) providers.PrepareProviderConfigResponse {
|
||||||
// At this moment there is nothing to configure for the terraform provider,
|
// At this moment there is nothing to configure for the terraform provider,
|
||||||
// so we will happily return without taking any action
|
// so we will happily return without taking any action
|
||||||
var res providers.ValidateProviderConfigResponse
|
var res providers.PrepareProviderConfigResponse
|
||||||
|
res.PreparedConfig = req.Config
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user