Merge pull request #19111 from hashicorp/jbardin/provider-config

PrepareProviderConfig for terraform provider
This commit is contained in:
James Bardin 2018-10-18 11:15:15 -04:00 committed by GitHub
commit 6317d529a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -31,10 +31,11 @@ func (p *Provider) GetSchema() providers.GetSchemaResponse {
}
// 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,
// so we will happily return without taking any action
var res providers.ValidateProviderConfigResponse
var res providers.PrepareProviderConfigResponse
res.PreparedConfig = req.Config
return res
}