Copy TF version to helper/schema provider
This commit is contained in:
parent
2383a2de59
commit
bb9ae50279
|
@ -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