Merge pull request #20137 from hashicorp/f/tf-version
Copy TF version to helper/schema provider
This commit is contained in:
commit
50e2b1856e
|
@ -390,6 +390,8 @@ func (s *GRPCProviderServer) Configure(_ context.Context, req *proto.Configure_R
|
|||
return resp, nil
|
||||
}
|
||||
|
||||
s.provider.TerraformVersion = req.TerraformVersion
|
||||
|
||||
config := terraform.NewResourceConfigShimmed(configVal, block)
|
||||
err = s.provider.Configure(config)
|
||||
resp.Diagnostics = convert.AppendProtoDiag(resp.Diagnostics, err)
|
||||
|
|
|
@ -64,6 +64,8 @@ type Provider struct {
|
|||
stopCtx context.Context
|
||||
stopCtxCancel context.CancelFunc
|
||||
stopOnce sync.Once
|
||||
|
||||
TerraformVersion string
|
||||
}
|
||||
|
||||
// ConfigureFunc is the function used to configure a Provider.
|
||||
|
|
Loading…
Reference in New Issue