Skip to content

Commit

Permalink
Merge pull request #22654 from hashicorp/plugin-pass
Browse files Browse the repository at this point in the history
plugin: Pass TerraformVersion from ConfigureRequest
  • Loading branch information
radeksimko authored Aug 31, 2019
2 parents aa6dca4 + cba55a4 commit c4e508f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/grpc_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit c4e508f

Please sign in to comment.