moduletest: update provider to match recent provider interface changes (#27904)
this fixes a bad merge on my part
This commit is contained in:
parent
ff05362d51
commit
e5a7586559
|
@ -481,10 +481,10 @@ func (p *Provider) ImportResourceState(req providers.ImportResourceStateRequest)
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// ValidateDataSourceConfig is used to to validate the resource configuration values.
|
// ValidateDataResourceConfig is used to to validate the resource configuration values.
|
||||||
func (p *Provider) ValidateDataSourceConfig(req providers.ValidateDataSourceConfigRequest) providers.ValidateDataSourceConfigResponse {
|
func (p *Provider) ValidateDataResourceConfig(req providers.ValidateDataResourceConfigRequest) providers.ValidateDataResourceConfigResponse {
|
||||||
// This provider has no data resouce types at all.
|
// This provider has no data resouce types at all.
|
||||||
var res providers.ValidateDataSourceConfigResponse
|
var res providers.ValidateDataResourceConfigResponse
|
||||||
res.Diagnostics = res.Diagnostics.Append(fmt.Errorf("unsupported data source %s", req.TypeName))
|
res.Diagnostics = res.Diagnostics.Append(fmt.Errorf("unsupported data source %s", req.TypeName))
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue