Merge pull request #22654 from hashicorp/plugin-pass

plugin: Pass TerraformVersion from ConfigureRequest
This commit is contained in:
Radek Simko 2019-08-31 07:20:30 +01:00 committed by GitHub
commit c4e508ffed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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