plugin: Pass TerraformVersion from ConfigureRequest

This commit is contained in:
Radek Simko 2019-08-30 12:12:41 +01:00
parent 75d3f1e62e
commit cba55a4e12
No known key found for this signature in database
GPG Key ID: 1F1C84FE689A88D7
1 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,6 @@ import (
proto "github.com/hashicorp/terraform/internal/tfplugin5"
"github.com/hashicorp/terraform/plugin/convert"
"github.com/hashicorp/terraform/providers"
"github.com/hashicorp/terraform/version"
"github.com/zclconf/go-cty/cty/msgpack"
"google.golang.org/grpc"
)
@ -287,7 +286,7 @@ func (p *GRPCProvider) Configure(r providers.ConfigureRequest) (resp providers.C
}
protoReq := &proto.Configure_Request{
TerraformVersion: version.Version,
TerraformVersion: r.TerraformVersion,
Config: &proto.DynamicValue{
Msgpack: mp,
},